Skip to content

Commit 7b5080e

Browse files
committed
removed get_prompt_tokens.
1 parent 227766e commit 7b5080e

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

SoftLayer/shell/core.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,6 @@ def cli(ctx, env):
5151
complete = completer.ShellCompleter(core.cli)
5252

5353
while True:
54-
def get_prompt_tokens(_):
55-
"""Returns tokens for the command prompt"""
56-
tokens = []
57-
try:
58-
tokens.append((token.Token.Username, env.client.auth.username))
59-
tokens.append((token.Token.At, "@"))
60-
except AttributeError:
61-
pass
62-
63-
tokens.append((token.Token.Host, "slcli-shell"))
64-
if env.vars['last_exit_code']:
65-
tokens.append((token.Token.ErrorPrompt, '> '))
66-
else:
67-
tokens.append((token.Token.Prompt, '> '))
68-
69-
return tokens
7054
try:
7155
line = p_shortcuts.prompt(
7256
completer=complete,

0 commit comments

Comments
 (0)