actuall close connections

This commit is contained in:
Daylin Morgan 2024-10-31 11:18:23 -05:00
parent aa0dbe4d05
commit d650d80a6f
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -38,8 +38,10 @@ proc killCmd() =
let controllers = collectControllers()
if controllers.len == 0: quit 0
for c in controllers:
echo bbfmt"removing file: [b]{c}"
removeFile c
let host = c.lastPathPart().split("-")[2]
let code = exitSsh(host)
if code != 0:
quit $bb"[red][[Error]failed to exit connection for host: " & host
proc show() =
## show active connections