generate shell commands from scripts
Project description
Installation
$ [sudo] pip install commands-generator
Features
- 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.sh
generated commands:
namespace:script
namespace:subnamespace:script
Config
~/.bashrc
:
export PATH=path/to/commands:$PATH
Scripts usage
usage: commands-generator scripts_dir commands_dir
Examples
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/bin
generated commands:
~/.local/share/bin/git:commit
~/.local/share/bin/files:python:setup.cfg:create
~/.local/share/bin/web:github.com:push
usage:
$ files:python:requirements.txt:create
$ git:commit
$ web:github.com:push
Related projects
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for commands-generator-2019.4.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc7e46a0987855cd50d82755317da374bb256e9a6c3e76cf267754c8b4bdd24 |
|
MD5 | bbc3f049babdbf1bb97aeaff9a5e3f47 |
|
BLAKE2b-256 | 4d77f01d837e94aeae15c0376e66c629e56bbb13f46ff42434c836fae88201d8 |