We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 227766e commit 7b5080eCopy full SHA for 7b5080e
SoftLayer/shell/core.py
@@ -51,22 +51,6 @@ def cli(ctx, env):
51
complete = completer.ShellCompleter(core.cli)
52
53
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
70
try:
71
line = p_shortcuts.prompt(
72
completer=complete,
0 commit comments