commands-generator-2020.7.1
توضیحات
generate shell commands from scripts
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | commands-generator-2020.7.1 |
| نام | commands-generator |
| نسخه کتابخانه | 2020.7.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/andrewp-as-is/commands-generator |
| آدرس اینترنتی | https://pypi.org/project/commands-generator/ |
| مجوز | Unlicense |
<!--
https://readme42.com
-->
[]()
[](https://pypi.org/project/commands-generator/)
[](https://unlicense.org/)
### Installation
```bash
$ [sudo] pip install commands-generator
```
```bash
$ [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
```
```bash
$ 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
+ [`classifiers-generator` - python classifiers generator](https://pypi.org/project/classifiers-generator/)
+ [`commands-generator` - shell commands generator](https://pypi.org/project/commands-generator/)
+ [`launchd-generator` - launchd.plist generator](https://pypi.org/project/launchd-generator/)
+ [`readme-generator` - `README.md` generator](https://pypi.org/project/readme-generator/)
+ [`setupcfg-generator` - `setup.cfg` generator](https://pypi.org/project/setupcfg-generator/)
+ [`travis-generator` - `.travis.yml` generator](https://pypi.org/project/travis-generator/)
<p align="center">
<a href="https://readme42.com/">readme42.com</a>
</p>
نحوه نصب
نصب پکیج whl commands-generator-2020.7.1:
pip install commands-generator-2020.7.1.whl
نصب پکیج tar.gz commands-generator-2020.7.1:
pip install commands-generator-2020.7.1.tar.gz