Python module for building component-based CLIs.
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| docs | ||
| scripts | ||
| src/cli_components | ||
| tests | ||
| .gitignore | ||
| LICENSE | ||
| MANIFEST.in | ||
| pyproject.toml | ||
| README.md | ||
cli-components
A small, dependency-free Python library for composing argparse commands and
nested subcommands.
Requires Python 3.11 or newer.
Enables you to create CLIs with component elements and options for each component.
Examples:
python3 docs/examples/project_cli.py --help
python3 docs/examples/project_cli.py --daemon docker project new demo -v
python3 docs/examples/project_cli.py project template compile --force
Import the package as cli_components.
See docs/usage.md for the API, evaluation result, and more examples.
Licensed under the GNU Affero General Public License v3.