diff libervia/cli/cmd_shell.py @ 4270:0d7bb4df2343

Reformatted code base using black.
author Goffi <goffi@goffi.org>
date Wed, 19 Jun 2024 18:44:57 +0200
parents 47401850dec6
children
line wrap: on
line diff
--- a/libervia/cli/cmd_shell.py	Tue Jun 18 12:06:45 2024 +0200
+++ b/libervia/cli/cmd_shell.py	Wed Jun 19 18:44:57 2024 +0200
@@ -44,8 +44,7 @@
 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 @@
     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 @@
 
     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)"""