BSD Ports

devel/py-knack 0.14.0 FreeBSD

Command-Line Interface framework

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
devel, python
Package size
125.1 KiB, 690.3 KiB installed

Description

Knack provides a Command-Line Interface framework.

CLI Patterns:

  • Be consistent with POSIX tools.
  • CLI success comes from ease and predictability of use so be consistent.
  • Support Piping and output direction to chain commands together.
  • Work with GREP, AWK, JQ and other common tools and commands.
  • Support productivity features like tab completion and parameter value completion.
  • Commands should follow a "[noun] [noun] [verb]" pattern.
  • For nouns that only support a single verb, the command should be named as a single hyphenated verb-noun pair.
  • Commands should support all output types (be consistent).
  • Exceptions are okay if only a 'raw' format makes sense e.g. XML.
  • Commands and arguments should have descriptions.
  • Include examples for the less straightforward commands.
  • Commands should return an object or dictionary, not strings/bools/etc.
  • Log to ERROR or WARNING for user messages; don't use print() function (by default it goes to STDOUT).
  • STDOUT vs. STDERR: STDOUT is used for actual command output. Everything else to STDERR (e.g. log/status/error messages).

In the other systems

SystemPortVersion
FreeBSDdevel/py-knack0.14.0
DragonFlydevel/py-knack0.11.0_2
HardenedBSDdevel/py-knack0.14.0
GhostBSDdevel/py-knack0.14.0

Install

Binary package:

pkg install py312-knack

From the ports tree:

cd /usr/ports/devel/py-knack/ && make install clean

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

RUN_DEPENDS=	py312-knack>0:devel/py-knack

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.14.00.14.00.10.10.11.0_20.14.0
FreeBSD:14:quarterly0.14.00.14.0n/a0.11.0_20.14.0
FreeBSD:15:latest0.14.00.14.0n/a0.11.0_20.11.0_2
FreeBSD:15:quarterly0.14.00.14.0n/an/an/a
FreeBSD:16:latest0.14.00.14.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 6

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 18

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
knack-0.14.0.tar.gz734902ddd32fd6343ec9b6ed0da729b212362d0e6b1208c0162633c90cb6f94a05877
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.