Port details |
- py-knack Command line interface framework
- 0.11.0_1 devel =3 0.11.0Version of this port present on the latest quarterly branch.
- Maintainer: dbaio@FreeBSD.org
- Port Added: 2018-08-10 09:44:29
- Last Update: 2024-07-07 08:05:33
- Commit Hash: 1a80ec7
- People watching this port, also watch:: picoc, roxterm, monit, notmuch, php81-pecl-scrypt
- Also Listed In: python
- License: MIT
- WWW:
- https://github.com/Microsoft/knack
- Description:
- Knack is a Python command line parsing framework. Knack is built around the
following 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.;
logging.info("Upload of myfile.txt successful") NOT return
"Upload successful".
- 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).
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}knack>0:devel/py-knack@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-knack/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-knack
- pkg install py311-knack
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-knack listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-knack
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1696201709
SHA256 (knack-0.11.0.tar.gz) = eb6568001e9110b1b320941431c51033d104cc98cda2254a5c2b09ba569fd494
SIZE (knack-0.11.0.tar.gz) = 72308
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-setuptools>=63.1.0 : devel/py-setuptools@py311
- python3.11 : lang/python311
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-argcomplete>0 : devel/py-argcomplete@py311
- py311-jmespath>0 : devel/py-jmespath@py311
- py311-pygments>0 : textproc/py-pygments@py311
- py311-tabulate>0 : devel/py-tabulate@py311
- py311-pyyaml>=0 : devel/py-pyyaml@py311
- py311-setuptools>=63.1.0 : devel/py-setuptools@py311
- python3.11 : lang/python311
- This port is required by:
- for Run
-
- sysutils/py-azure-cli-core
Configuration Options:
- No options to configure
- Options name:
- devel_py-knack
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.11.0_1 07 Jul 2024 08:05:33 |
Po-Chuan Hsieh (sunpoet) |
devel/py-pyyaml: Move devel/py-yaml to devel/py-pyyaml
- Bump PORTREVISION of dependent ports for dependency change |
0.11.0 01 Oct 2023 23:10:36 |
Danilo G. Baio (dbaio) |
devel/py-knack: Update to 0.11.0
Changelog: https://github.com/microsoft/knack/releases/tag/v0.11.0 |
0.10.1 27 Jun 2023 19:34:34 |
Rene Ladan (rene) |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
0.10.1 11 Jan 2023 15:58:34 |
Dmitry Marakasov (amdmi3) |
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR: 267994
Differential revision: D37518
Approved by: bapt |
0.10.1 31 Dec 2022 17:49:40 |
Danilo G. Baio (dbaio) |
devel/py-knack: Update to 0.10.1
Changelog: https://github.com/microsoft/knack/blob/v0.10.1/HISTORY.rst |
0.10.0 10 Sep 2022 17:20:24 |
Danilo G. Baio (dbaio) |
devel/py-knack: Update to 0.10.0
Changelog: https://github.com/microsoft/knack/blob/v0.10.0/HISTORY.rst |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
0.9.0 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
0.9.0 02 Jan 2022 14:18:54 |
Danilo G. Baio (dbaio) |
devel/py-knack: Update to 0.9.0
Changelog: https://github.com/microsoft/knack/blob/v0.9.0/HISTORY.rst |
0.8.2 29 May 2021 14:02:07 |
Danilo G. Baio (dbaio) |
devel/py-knack: Update to 0.8.2
Changelog: https://github.com/microsoft/knack/blob/v0.8.2/HISTORY.rst |
0.8.1 07 May 2021 02:51:07 |
Danilo G. Baio (dbaio) |
devel/py-knack: Update to 0.8.1 |
0.8.0 18 Apr 2021 12:21:57 |
Danilo G. Baio (dbaio) |
devel/py-knack: Update to 0.8.0
Changelog: https://github.com/microsoft/knack/blob/v0.8.0/HISTORY.rst |
0.8.0.r2 07 Apr 2021 08:09:01 |
Mathieu Arnold (mat) |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
0.8.0.r2 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
0.8.0.r2 21 Jan 2021 14:14:01 |
dbaio |
devel/py-knack: Update to 0.8.0rc2 |
0.7.2 11 Aug 2020 22:57:56 |
dbaio |
devel/py-knack: Update to 0.7.2
Reported by: portscout |
0.7.1 21 May 2020 01:30:10 |
dbaio |
devel/py-knack: Update to 0.7.1
Reported by: portscout |
0.7.0.r4 01 May 2020 14:12:15 |
dbaio |
devel/py-knack: Update to 0.7.0rc4
Reported by: portscout |
0.7.0.r3 21 Apr 2020 20:12:53 |
dbaio |
devel/py-knack: Update to 0.7.0rc3 |
0.7.0.r1 05 Apr 2020 13:43:20 |
dbaio |
devel/py-knack: Update to 0.7.0rc1
Drop support for Python 2.7 |
0.6.3 04 Feb 2020 08:49:43 |
dbaio |
devel/py-knack: Take MAINTAINER'ship |
0.6.3 03 Feb 2020 20:21:08 |
rene |
Return dbn's ports to the pool after safekeeping his commit bit. |
0.6.3 07 Sep 2019 22:43:00 |
dbaio |
devel/py-knack: Update to 0.6.3
Changelog: https://github.com/Microsoft/knack/releases/tag/v0.6.3
Approved by: dbn (maintainer, implicit) |
0.6.2 06 Jun 2019 00:34:19 |
dbaio |
devel/py-knack: Update to 0.6.2
Changelog: https://github.com/Microsoft/knack/releases/tag/v0.6.2
Approved by: dbn (maintainer, implicit) |
0.6.1 11 May 2019 23:09:59 |
dbaio |
devel/py-knack: Update to 0.6.1
Changelog: https://github.com/Microsoft/knack/releases/tag/v0.6.1
Approved by: dbn (maintainer, implicit) |
0.5.4 14 Apr 2019 23:07:40 |
dbaio |
devel/py-knack: Update to 0.5.4
Changelog: https://github.com/Microsoft/knack/releases/tag/v0.5.4
Approved by: dbn (maintainer, implicit) |
0.5.3 21 Mar 2019 16:33:25 |
dbn |
devel/py-knack: update to 0.5.3
- Mark as NO_ARCH
- Add missing dependency
- Change log:
- Removes an incorrect check when adding arguments.
- Updates usages of yaml.load to use yaml.safe_load.
PR: 236421
Submitted by: dbaio@ |
0.5.1 20 Nov 2018 04:26:41 |
dbn |
devel/py-knack: update to 0.5.1 |
0.5.0 08 Nov 2018 15:12:44 |
dbn |
devel/py-knack: update to 0.5.0 |
0.4.5 02 Nov 2018 17:12:21 |
dbn |
devel/py-knack: update to 0.4.5
- Switch to PyPi
- PyPi doesn't ship with a LICENSE file
- PyPi doesn't ship with tests (but we didn't have tests hooked up anyway) |
0.4.3 12 Sep 2018 14:58:32 |
dbn |
devel/py-knack: update to 0.4.3 |
0.4.2 10 Aug 2018 09:43:08 |
dbn |
devel/py-knack: add port
Knack is a Python command line parsing framework. |