Skip to content

bitplane/subcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📺 subcmd.sh

A simple subcommand dispatcher. Like how git commit runs git-commit

▶️ Usage

In a file called mycmd

export HELP="Usage: mycmd [subcommand] ..."

. subcmd.sh

And if any functions, aliases or functions called mycmd-* exist, it'll run them instead. If you call mycmd --help, it'll print the available subcommands after the HELP you specified.

You can include it subcommands too.

⚖️ License

WTFPL with 1 additional clause: don't blame me.

🔗 Links

About

shell script for `sub command` -> `sub-command`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages