commands-generator
v2019.3.22
Published
generate shell commands from scripts
Downloads
3
Readme
generate shell commands from scripts
Installation
$ [sudo] pip install commands-generatorFeatures
- generate shell commands from scripts
- shell namespaces -
namespace:command. folder names as namespaces
How it works
scripts (shebang #! required):
namespace/script.py
namespace/subnamespace/script.shgenerated commands:
namespace:script
namespace:subnamespace:scriptConfig
~/.bashrc:
export PATH=path/to/commands:$PATH
CLI
usage: commands-generator scripts_dir commands_dirExamples
generate ~/.local/share/bin from dotfiles/scripts:
dotfiles/scripts/git/commit.sh
dotfiles/scripts/files/python/setup.cfg/create.sh
dotfiles/scripts/web/github.com/push.sh$ cd path/to/dotfiles
$ commands-generator scripts ~/.local/share/bingenerated commands:
~/.local/share/bin/git:commit
~/.local/share/bin/files:python:setup.cfg:create
~/.local/share/bin/web:github.com:pushusage:
$ files:python:requirements.txt:create
$ git:commit
$ web:github.com:push