Address bugs due to allucinations

Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
This commit is contained in:
Víctor Mayoral Vilches 2025-01-10 08:06:12 +00:00
parent 4d4e4e3790
commit 4888ce375c
1 changed files with 3 additions and 3 deletions

View File

@ -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.