Bug#1032825: ITP: gitlike-commands -- Python module for easily creating `git`-style subcommand handling
Owner: Edward Betts <firstname.lastname@example.org>
X-Debbugs-Cc: email@example.com, firstname.lastname@example.org
* Package name : gitlike-commands
Version : 0.2.1
Upstream Author : Joe Block <email@example.com>
* URL : https://github.com/unixorn/gitlike-commands
* License : Apache-2.0
Programming Lang: Python
Description : Python module for easily creating `git`-style subcommand handling
The subcommand_driver automatically figures out what name the script was
called as, then looks for subcommands and runs them if found, passing in any
command line options.
If you have a `foo` script in your $PATH as shown below
from gitlike_commands import subcommand_driver
if __name__ == '__main__':
Running `foo bar baz` will look for a `foo-bar-baz` script, and if present
in your $PATH, run it. If there is no `foo-bar-baz`, it will look for
`foo-bar`, and if it finds that, run `foo-bar baz`.
The subcommands can be written in any language, the only requirements are
that they are marked executable and follow the `foo-something` naming
I plan to maintain this package as part of the Python team.