Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -44,8 +44,7 @@ Enter "help" or "?" to know what to do
|
|||
class Shell(base.CommandBase, cmd.Cmd):
|
||||
def __init__(self, host):
|
||||
base.CommandBase.__init__(
|
||||
self, host, "shell",
|
||||
help=_("launch libervia-cli in shell (REPL) mode")
|
||||
self, host, "shell", help=_("launch libervia-cli in shell (REPL) mode")
|
||||
)
|
||||
cmd.Cmd.__init__(self)
|
||||
|
||||
|
|
@ -146,7 +145,7 @@ class Shell(base.CommandBase, cmd.Cmd):
|
|||
def do_help(self, args):
|
||||
"""show help message"""
|
||||
if not args:
|
||||
self.disp(A.color(C.A_HEADER, _("Shell commands:")), end=' ')
|
||||
self.disp(A.color(C.A_HEADER, _("Shell commands:")), end=" ")
|
||||
super(Shell, self).do_help(args)
|
||||
if not args:
|
||||
self.disp(A.color(C.A_HEADER, _("Action commands:")))
|
||||
|
|
@ -191,7 +190,7 @@ class Shell(base.CommandBase, cmd.Cmd):
|
|||
|
||||
def do_version(self, args):
|
||||
"""show current backend/CLI version"""
|
||||
self.run_cmd(['--version'])
|
||||
self.run_cmd(["--version"])
|
||||
|
||||
def do_shell(self, args):
|
||||
"""launch an external command (you can use ![command] too)"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue