Updated task result console output
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user