From 4888ce375c473f5763601b2dd34a44645e4ea286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= Date: Fri, 10 Jan 2025 08:06:12 +0000 Subject: [PATCH] Address bugs due to allucinations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: VĂ­ctor Mayoral Vilches --- cai/tools/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cai/tools/cli.py b/cai/tools/cli.py index 38deaa2c..d2a71f89 100644 --- a/cai/tools/cli.py +++ b/cai/tools/cli.py @@ -3,10 +3,10 @@ Here are the CLI tools for executing commands, they should usually return with run_command, but you can be creative """ -from .common import run_command +from cai.tools.common import run_command # pylint: disable=E0401 -def list_dir(path: str, args: str, ctf=None) -> str: +def list_dir(path: str, args: str = "", ctf=None) -> str: """ List the contents of a directory. by def . @@ -21,7 +21,7 @@ def list_dir(path: str, args: str, ctf=None) -> str: return run_command(command, ctf=ctf) -def cat_file(args: str, file_path: str, ctf=None) -> str: +def cat_file(file_path: str, args: str = "", ctf=None) -> str: """ Display the contents of a file.