Updated task result console output

This commit is contained in:
Jakob Friedl
2025-06-02 21:14:13 +02:00
parent 3849bcd7f1
commit ac1bc22b93
9 changed files with 30 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
import argparse, times, strformat, terminal, nanoid
import ./commands/commands
import ../[types]
import ./commands
#[
Agent Argument parsing
@@ -17,6 +17,9 @@ var parser = newParser:
help("Update sleep delay configuration.")
arg("delay", help="Delay in seconds.", nargs = 1)
command("info"):
help("Display agent information and current settings.")
command("help"):
nohelpflag()
@@ -52,6 +55,9 @@ proc handleAgentCommand*(cq: Conquest, args: varargs[string]) =
of "sleep":
cq.taskExecuteSleep(parseInt(opts.sleep.get.delay))
of "info":
discard
# Handle help flag
except ShortCircuit as err:
if err.flag == "argparse_help":