1
0
Fork 0

Make \? output sorted.

This commit is contained in:
Amjith Ramanujam 2015-01-03 19:36:11 -08:00
parent 3f5d0c0143
commit b046dea74d
2 changed files with 3 additions and 2 deletions

3
TODO
View File

@ -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.

View File

@ -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)]