Implemented 'pwd' command to retrieve working directory.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user