freebsd-dev/sbin/bectl
Kyle Evans f0298be018 bectl(8): implement sorting for 'bectl list' output
Allow 'bectl list' to sort output by a given property name. The property
name is passed in using a command-line flag, '-c' for ascending order and
'-C' for descending order. The properties allowed to sort by are:

- name (the default output, even if '-c' or '-C' are not used)
- creation
- origin
- used
- usedds
- usedsnap
- usedrefreserv

The default output for 'bectl list' is now ascending alphabetical order of
BE name.

To sort by creation time from earliest to latest, the command would be
'bectl list -c creation'

Submitted by:	Rob Fairbanks <rob.fx907 gmail com>
Reviewed by:	ler
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D20818
2019-09-04 13:59:06 +00:00
..
tests bectl(8): create non-recursive boot environments 2019-06-27 14:03:32 +00:00
bectl_jail.c bectl(8): Don't accept jid=0 from jail_getid 2019-06-02 14:05:51 +00:00
bectl_list.c bectl(8): implement sorting for 'bectl list' output 2019-09-04 13:59:06 +00:00
bectl.8 bectl(8): implement sorting for 'bectl list' output 2019-09-04 13:59:06 +00:00
bectl.c bectl(8): implement sorting for 'bectl list' output 2019-09-04 13:59:06 +00:00
bectl.h bectl(8): Split list functionality out into its own file as well 2018-08-06 03:41:52 +00:00
Makefile bectl(8): Add some regression tests 2018-11-19 02:30:12 +00:00