Implemented basic "ps" and "env" commands.

This commit is contained in:
Jakob Friedl
2025-08-01 13:16:12 +02:00
parent 0d54b3e64b
commit dfcafa9c24
7 changed files with 161 additions and 5 deletions

View File

@@ -82,9 +82,11 @@ proc handleResult*(resultData: seq[byte]) =
case cast[StatusType](taskResult.status):
of STATUS_COMPLETED:
cq.writeLine(fgBlack, styleBright, fmt"[{date}]", fgGreen, " [+] ", resetStyle, fmt"Task {taskId} completed.")
of STATUS_FAILED:
cq.writeLine(fgBlack, styleBright, fmt"[{date}]", fgRed, styleBright, " [-] ", resetStyle, fmt"Task {taskId} failed.")
of STATUS_IN_PROGRESS:
discard
case cast[ResultType](taskResult.resultType):
of RESULT_STRING: