[x] Create a command line tool for chefkoch. It should be called chef (no extension) and reside in the directory bin/ of the repository
[x] use a shebang to indicate it is suited for an arbitrary python (take /usr/env and allow py2 and py3)
[x] Import the chefkoch module and make the chef.version available as the global variable __version__
[x] Add a __main__ script wrapper (for these two bullet points see the PINGITproject)
[x] Add an ArgumentHandler infrastructure (argparse on roids, allowing subcommands), for now only with -v/--verbose flag option and -d/--debug-level int option (defaults to 0)
[x] Add four dummy routines for four (empty for now) commands cook, check, inspect and version. The function name should follow the format cmd_command where command is replaced by the actual command name. Prefix the routines by the @subcmd(command) decorator. (here, too, command is replaced by the command name). Let PINGIT guide you if in doubt
[x] Test your setup and check that the user interface provides sufficient help for the undecided first-time-user
[x] Extend setup.py such that it includes bin/chef as a command line tool
[x] Test (by calling python setup.py install locally) that the command line tool is installed properly and available when installed using pip
[x] Write a nice usage help header (let other command line tools and their self-description guide yourself) that also states the __version__ of the tool
[x] push the stuff to a new branch and issue a pull request
Tasks
chef
(no extension) and reside in the directorybin/
of the repositorychefkoch
module and make thechef.version
available as the global variable__version__
__main__
script wrapper (for these two bullet points see thePINGIT
project)-v/--verbose
flag option and-d/--debug-level
int option (defaults to 0)cook
,check
,inspect
andversion
. The function name should follow the formatcmd_command
wherecommand
is replaced by the actual command name. Prefix the routines by the@subcmd(command)
decorator. (here, too, command is replaced by the command name). LetPINGIT
guide you if in doubtbin/chef
as a command line toolpython setup.py install
locally) that the command line tool is installed properly and available when installed using pip__version__
of the tool