1
0
mirror of https://github.com/dbcli/pgcli synced 2024-06-16 01:42:23 +00:00

Require prompt_toolkit>=2.0.6.

This commit is contained in:
Dick Marinus 2018-11-11 14:16:32 +01:00 committed by Irina Truong
parent 589c2abdfb
commit 94475e6283
3 changed files with 5 additions and 7 deletions

View File

@ -11,6 +11,7 @@ Internal:
--------- ---------
* Clean up and add behave logging. (Thanks: `Dick Marinus`_) * Clean up and add behave logging. (Thanks: `Dick Marinus`_)
* Require prompt_toolkit>=2.0.6. (Thanks: `Dick Marinus`_)
2.0.0: 2.0.0:

View File

@ -529,13 +529,10 @@ class PGCli(object):
raise RuntimeError(message) raise RuntimeError(message)
while True: while True:
try: try:
text = self.prompt_app.prompt( text = self.prompt_app.prompt(default=sql)
default=sql,
vi_mode=self.vi_mode
)
break break
except KeyboardInterrupt: except KeyboardInterrupt:
sql = None sql = ""
editor_command = special.editor_command(text) editor_command = special.editor_command(text)
return text return text
@ -633,7 +630,7 @@ class PGCli(object):
try: try:
while True: while True:
try: try:
text = self.prompt_app.prompt(vi_mode=self.vi_mode) text = self.prompt_app.prompt()
except KeyboardInterrupt: except KeyboardInterrupt:
continue continue

View File

@ -15,7 +15,7 @@ install_requirements = [
'pgspecial>=1.11.2', 'pgspecial>=1.11.2',
'click >= 4.1', 'click >= 4.1',
'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF? 'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF?
'prompt_toolkit>=2.0.0,<2.1.0', 'prompt_toolkit>=2.0.6,<2.1.0',
'psycopg2 >= 2.7.4,<2.8', 'psycopg2 >= 2.7.4,<2.8',
'sqlparse >=0.2.2,<0.3.0', 'sqlparse >=0.2.2,<0.3.0',
'configobj >= 5.0.6', 'configobj >= 5.0.6',