summaryrefslogtreecommitdiff
path: root/releasenotes/notes/add-Lister-sort-direction-5f34dba3c9743572.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'releasenotes/notes/add-Lister-sort-direction-5f34dba3c9743572.yaml')
-rw-r--r--releasenotes/notes/add-Lister-sort-direction-5f34dba3c9743572.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/releasenotes/notes/add-Lister-sort-direction-5f34dba3c9743572.yaml b/releasenotes/notes/add-Lister-sort-direction-5f34dba3c9743572.yaml
new file mode 100644
index 0000000..219e20c
--- /dev/null
+++ b/releasenotes/notes/add-Lister-sort-direction-5f34dba3c9743572.yaml
@@ -0,0 +1,21 @@
+---
+features:
+ - |
+ The ``cliff.lister.Lister`` base class now implements ``--sort-ascending``
+ and ``--sort-descending`` options, which can be used to configure the sort
+ direction. For example::
+
+ $ hello-world list-users --sort-column email --sort-descending
+ +----------------+-----------------------------+
+ | Name | Email |
+ +----------------+-----------------------------+
+ | Charles Xavier | therealcharliex@example.com |
+ | Jim Hendrix | jim@example.com |
+ | John Doe | doe.john@example.com |
+ | Alice Baker | abaker@example.com |
+ +----------------+-----------------------------+
+upgrade:
+ - |
+ ``cliff.lister.Lister`` implementations that override the
+ ``need_sort_by_cliff`` property should now consider the
+ ``--sort-ascending`` and ``--sort-descending`` options.