BSD Ports

devel/py-shtab 1.7.1_1 MidnightBSD

Automagic shell tab completion for Python CLI applications

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
Apache-2.0
Categories
devel, python

Description

What: Automatically generate shell tab completion scripts for Python CLI apps Why: Speed & correctness. Alternatives like argcomplete and pyzshcomplete are slow and have side-effects How: shtab processes an argparse.ArgumentParser object to generate a tab completion script for your shell

Features:

  • Outputs tab completion scripts for
    • bash
    • zsh
    • tcsh
  • Supports
    • argparse
    • docopt (via argopt)
  • Supports arguments, options and subparsers
  • Supports choices (e.g. --say={hello,goodbye})
  • Supports file and directory path completion
  • Supports custom path completion (e.g. --file={*.txt})

In the other systems

SystemPortVersion
MidnightBSDdevel/py-shtab1.7.1_1
FreeBSDdevel/py-shtab1.12.1
DragonFlydevel/py-shtab1.7.1
HardenedBSDdevel/py-shtab1.12.1
GhostBSDdevel/py-shtab1.12.1

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}shtab

From mports:

cd /usr/mports/devel/py-shtab && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}shtab>0:devel/py-shtab

Dependencies

As this port's Makefile names them.

Build 3

Build dependencies 3

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
shtab-1.7.1.tar.gz454104e4bcb02eeb82ec45920a5d0add92eac9c9b63b2804c9196c1f1fdc2d039243c
Master sites 2
  • PYPI
  • https://github.com/iterative/shtab/releases/download/v1.7.1/