generate shell commands from scripts
Project description
Installation
$ [sudo] pip install commands-generator
$ [sudo] npm i -g commands-generator
How it works
scripts (shebang #!
required):
namespace/script.py
namespace/subnamespace/script.sh
generated commands:
namespace:script
namespace:subnamespace:script
Features
- generate shell commands from scripts
- shell namespaces -
namespace:command
. folder names as namespaces
Config
~/.bashrc
:
export PATH=path/to/commands:$PATH
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
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-2020.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4604f301cdf6ad4ce7c3718bd75980eeaf1ba90810588f71ebad2a711121bc60 |
|
MD5 | f402422b07d15e0f219b05229601942e |
|
BLAKE2b-256 | 753b74516a637ba75700a6a68e49805c302b7904b3046a36fdc0f5f32a895c42 |