Skip to content

Commit 294bcba

Browse files
committed
prompt-toolkit has been updated many times since slcli-shell was created. p_shortcuts.prompt() passed arguments that are long deprecated causing the shell to fail.
1 parent 474e338 commit 294bcba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

SoftLayer/shell/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,14 @@ def get_prompt_tokens(_):
6969
tokens.append((token.Token.Prompt, '> '))
7070

7171
return tokens
72-
7372
try:
7473
line = p_shortcuts.prompt(
7574
completer=complete,
76-
history=history,
75+
complete_while_typing=True,
7776
auto_suggest=p_auto_suggest.AutoSuggestFromHistory(),
78-
get_prompt_tokens=get_prompt_tokens,
7977
)
8078

79+
8180
# Parse arguments
8281
try:
8382
args = shlex.split(line)

0 commit comments

Comments
 (0)