diff options
author | Amjith Ramanujam <amjith@newrelic.com> | 2015-01-03 19:36:11 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith@newrelic.com> | 2015-01-03 19:36:11 -0800 |
commit | b046dea74d31d3beb6ababccb96d9cb8411e8ace (patch) | |
tree | a9266c8293a75bb82643dcfb18e89e5ff0556f4a | |
parent | 3f5d0c0143677e3256401f7eade7d5b4bd4ebcdf (diff) |
Make \? output sorted.
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | pgcli/packages/pgspecial.py | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,8 @@ * [ ] ON keyword should suggest aliases. This is something we don't currently support since a collection of aliases is not maintained. * [ ] Add a page to keep track of changelog in pgcli.com * [ ] Refactor to sqlcompletion to consume the text from left to right and use a state machine to suggest cols or tables instead of relying on hacks. -* [ ] Add a few more special commands. (\l pattern, \di, \dp, \ds, \dv, \dy, \z etc) +* [ ] Add a few more special commands. (\l pattern, \dp, \ds, \dy, \z etc) +* [ ] Refactor pgspecial.py to a class. * [ ] Write a doc about how to add new pgspecial commands.(psql -E) * [ ] Show/hide docs for a statement using a keybinding. * [ ] Check how to add the name of the table before printing the table. diff --git a/pgcli/packages/pgspecial.py b/pgcli/packages/pgspecial.py index 94d1ca79..41d02ec5 100644 --- a/pgcli/packages/pgspecial.py +++ b/pgcli/packages/pgspecial.py @@ -678,7 +678,7 @@ def sql_name_pattern(pattern): def show_help(cur, arg, verbose): # All the parameters are ignored. headers = ['Command', 'Description'] result = [] - for command, value in CASE_SENSITIVE_COMMANDS.iteritems(): + for command, value in sorted(CASE_SENSITIVE_COMMANDS.iteritems()): if value[1]: result.append(value[1]) return [(result, headers, None)] |