$ cli load from.yaml
Project description
cliffy :mountain:
YAML-defined CLI generator and manager
Features
- Build and generate YAML-defined CLIs
- Dynamic abstractions to rapidly build and test CLIs
- Manage CLIs- load, enable, disable, update, and remove
- Built-in shell and Python script support
Install
pip install cliffy
Usage
cli init <cli name>
: Generate a template CLI manifestcli load <manifest>
: Add a new CLI based on the manifestcli render <manifest>
: Render the YAML manifest into executable codecli list
: Ouput a list of loaded CLIscli disable <cli name>
: Disable a CLIcli enable <cli name>
: Enable a disabled CLIcli unload <cli name>
: Remove a loaded CLI
Example
- Define a manifest
# hello.yaml
name: hello
version: 0.1.0
commands:
bash: $echo "hello from bash"
python: print("hello from python")
- Load CLI
$ cli load hello.yaml
- Run CLI directly
For more examples, check examples directory.
Development
poetry shell
cli -h
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cliffy-0.2.3.tar.gz
(10.6 kB
view hashes)
Built Distribution
cliffy-0.2.3-py3-none-any.whl
(13.9 kB
view hashes)