python package to generate shell-completion for your CLI
Project description
shell-complete-py
python package to generate shell-completion for your CLI
Warning: This project is in the earliest phase possible
Usage
Either import and use the generate(parser: ArgumentParser)
function or directly the ActionGenerate
from argparse import ArgumentParser
from shell_complete.argparse import ActionGenerate # note: currently not available
parser = ArgumentParser()
...
parser.add_argument('--completion', action=ActionGenerate,
help="Generate a bash-completion-script")
You can also execute the module itself
python3 -m shell_complete [args...]
Or run the console-script
shell-complete [args...]
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
shell-complete-0.0.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for shell_complete-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f397bf5c7061cd1c9c574f574b6adfe1da1dc63e65fa2565ee57e9ff4bc145d8 |
|
MD5 | ff68b2521379dec212f0b75e9704a96a |
|
BLAKE2b-256 | a53b8803c69373075955ac28ff7aef0900cb1f2f70891155cdbfa0ebeda9aac3 |