changed sub_command to sub_console

This commit is contained in:
Daniel Sagi
2021-06-17 15:10:58 +00:00
parent 6a8568173e
commit f7e73fe642
+2 -2
View File
@@ -11,13 +11,13 @@ class EnvSubConsole(cmd2.Cmd):
def __init__(self, env):
super(EnvSubConsole, self).__init__()
self.env = env
self.prompt = self.env.get_prompt(sub_command="env")
self.prompt = self.env.get_prompt(sub_console="env")
def do_auth(self, arg):
AuthSubConsole(self.env).cmdloop()
def postcmd(self, stop, line):
self.prompt = self.env.get_prompt(sub_command="env")
self.prompt = self.env.get_prompt(sub_console="env")
if stop:
return True