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
CLI
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
classifiers-generator
- python classifiers generatorcommands-generator
- shell commands generatorlaunchd-generator
- launchd.plist generatorreadme-badges
-README.md
badgesreadme-docstring
- generate README.md from python docstringsreadme-generator
-README.md
generatorsetupcfg-generator
-setup.cfg
generatortravis-generator
-.travis.yml
generator
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
Built Distribution
Close
Hashes for commands-generator-2019.3.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f7a627219b0d9de712dfde79605ebdf8a8fd5be48038faf7202e99f0e0a07b7 |
|
MD5 | 8adefd73e2908c1392c6386d946d6dd2 |
|
BLAKE2b-256 | 267121152b20783ed13e77025ce826df12797653fd84df8b081ec96a62e5692d |
Close
Hashes for commands_generator-2019.3.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69d89b1812cb3f379489f916f8967e314c954f9a288e7af628a6c20a2301b98f |
|
MD5 | ee8adcff1571497d7c1be7376c1a8e37 |
|
BLAKE2b-256 | cbab43aa01005b5ebd07271e5ec68ba2fbb18c1a9a83189d1a6de9c492363a91 |