Implemented 'pwd' command to retrieve working directory.

This commit is contained in:
Jakob Friedl
2025-06-20 16:44:39 +02:00
parent b25d09e282
commit 6a92a19b9e
11 changed files with 72 additions and 8 deletions

View File

@@ -139,7 +139,7 @@ proc timeSince*(agent: Agent, timestamp: DateTime): Cell =
proc drawTable*(cq: Conquest, agents: seq[Agent]) =
let headers: seq[string] = @["Name", "Address", "Username", "Hostname", "Operating System", "Process", "PID", "Activity"]
let widths = @[8, 15, 15, 15, 16, 15, 5, 8]
let widths = @[8, 15, 15, 15, 16, 13, 5, 8]
let headerCells = headers.mapIt(Cell(text: it, fg: fgWhite, bg: bgDefault))
cq.writeLine(border(topLeft, topMid, topRight, widths))