actuall close connections
This commit is contained in:
parent
aa0dbe4d05
commit
d650d80a6f
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue