Make list of fields and sort ordering configurable
Make list of fields and sort ordering configurable

Allow use of '-f fieldname' to control fields displayed in
output table. Also allow a ':NN' suffix to override truncation
length.

Sort ordering is controlled by a '-t fieldname' arg, and is
done based on original data, not formatted data, to fix sorting
of dates.

eg

$ qgerrit -t url -f status -f url -f subject:100
+----------------+------------------------------------+---------------------------------------------------------------------------------------------------------+
|     Status     |                URL                 |                                                 Subject                                                 |
+----------------+------------------------------------+---------------------------------------------------------------------------------------------------------+
|      NEW       | https://review.openstack.org/27160 |                            Normalize the weights instead of using raw values                            |
|      NEW       | https://review.openstack.org/30755 |                                      The use of the class variables                                     |
|      NEW       | https://review.openstack.org/33409 |                                  Adding image multiple location support                                 |
|      NEW       | https://review.openstack.org/33831 |                            Automatic retry db.api query if db connection lost                           |
|      NEW       | https://review.openstack.org/35303 |                     Stop, Rescue, and Delete should give guest a chance to shutdown                     |
....

Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

harlowja/gerrit_view