devel/py-pycomplete 0.4.0 DragonFly
Python library to generate static completion scripts for your CLI app
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- BSD3CLAUSE
- Categories
- devel, python
- Package size
- 23.2 KiB, 106.4 KiB installed
Description
With pycomplete, one can generate a completion script for CLI application that is compatible with a given shell. The script outputs the result onto stdout, allowing one to re-direct the output to the file of their choosing.
pycomplete accepts different types of objects depending on which CLI framework you are using. For argparse, argparse.ArgumentParser is expected while for click, either click.Command or click.Context is OK. pycomplete knows what to do smartly.
Where you place the file will depend on which shell, and which operating system you are using. Your particular configuration may also determine where these scripts need to be placed.
Note that pycomplete needs to be installed in the same environment as the target CLI app to work properly.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-pycomplete | 0.4.0 |
| FreeBSD | devel/py-pycomplete | 0.4.0 |
Install
Binary package:
pkg install py311-pycomplete
From DPorts:
cd /usr/dports/devel/py-pycomplete && make install clean
Dependencies
Run dependencies 1
No port depends on this one.