Reformatted code base using black.

This commit is contained in:
Goffi 2024-06-19 18:44:57 +02:00
commit 53fdaa9d09

View file

@ -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)"""