Implemented 'pwd' command to retrieve working directory.

This commit is contained in:
Jakob Friedl
2025-06-20 16:44:39 +02:00
parent b25d09e282
commit 6a92a19b9e
11 changed files with 72 additions and 8 deletions

View File

@@ -20,6 +20,9 @@ var parser = newParser:
command("info"):
help("Display agent information and current settings.")
command("pwd"):
help("Retrieve current working directory")
command("help"):
nohelpflag()
@@ -58,6 +61,9 @@ proc handleAgentCommand*(cq: Conquest, args: varargs[string]) =
of "info":
discard
of "pwd":
cq.taskGetWorkingDirectory()
# Handle help flag
except ShortCircuit as err:
if err.flag == "argparse_help":