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_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
Makefile