Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
580 B

  1. #!/bin/sh
  2. : <<=cut
  3. =pod
  4. =head1 NAME
  5. notes - a wraper for various things for dealing with my notes
  6. =head1 SYNOPSIS
  7. wrt init # Initialize a wrt repository
  8. =head1 DESCRIPTION
  9. =head1 LICENSE
  10. Like the rest of bpb-kit, notes is committed to the public domain.
  11. =head1 AUTHOR
  12. Brennen Bearnes <code@p1k3.com>
  13. =cut
  14. # We should hand off to a requested subcommand:
  15. subprog="notes-$1"
  16. # Make sure that the command we've been given exists:
  17. command -v "$subprog" >/dev/null 2>&1 || {
  18. echo "notes: '$1' is not a notes command."
  19. exit 1
  20. }
  21. shift
  22. exec "$subprog" "$@"