21914ed74b
Very often there is a need to sort data by one or several columns. This patch adds ability to do this by specifying extra '-s/--sort-column' argument with respective columns: -s SORT_COLUMN, --sort-column SORT_COLUMN specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated e.g.: * without sorting: foo_command bar_subcommand list +------+------+ | Col1 | Col2 | +------+------+ | a | A | | b | B | | c | A | +------+------+ * with sorting: foo_command bar_subcommand list -s Col2 Col1 +------+------+ | Col1 | Col2 | +------+------+ | a | A | | c | A | | b | B | +------+------+ Change-Id: Ifc6d6746448ff6f42898efd78ed3fd084a598a91 |
||
---|---|---|
cliff | ||
demoapp | ||
doc | ||
integration-tests | ||
.gitignore | ||
.gitreview | ||
.stestr.conf | ||
.testr.conf | ||
.travis.yml | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
LICENSE | ||
MANIFEST.in | ||
Makefile | ||
README.rst | ||
bandit.yaml | ||
openstack-common.conf | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Team and repository tags
cliff -- Command Line Interface Formulation Framework
cliff is a framework for building command line programs. It uses setuptools entry points to provide subcommands, output formatters, and other extensions.
- Free software: Apache license
- Documentation: https://docs.openstack.org/cliff/latest/
- Source: https://git.openstack.org/cgit/openstack/cliff
- Bugs: https://bugs.launchpad.net/python-cliff