- Source code & Project management on github - https://github.com/pydoit/doit-cmd
- Website & docs - http://pythonhosted.org/doit-cmd
- Discussion group - https://groups.google.com/forum/#!forum/python-doit
- MIT license
Helpers for creating tasks that exectue shell commands.
Base class to create tasks that execute a shell command.
It provides:
- conversion of a param dict to a command options string
- handle/control wheather the command should be as sudo
- handle/control wheather the command is going to be execute interactively
Variables: |
|
---|
Usage: see doitsys.copy.Copy
command line option formatter
Parameters: | opt_list (list-dict) – list of dict with command options |
---|---|
Return string: | formatted options for a command line |
If the value of an option is True, option is added wihtout a value. If opt name lenght is just one characher use only one dash.
short-cut to return a task that executes a simple command
Parameters: |
|
---|---|
Return dict: | doit task metadata |
short-cut to return a task that executes a simple command interactively
Parameters: |
|
---|---|
Return dict: | doit task metadata |