Compare commits

..

2 commits

Author SHA1 Message Date
d86dff8360
update deps 2024-10-31 11:21:45 -05:00
d650d80a6f
actuall close connections 2024-10-31 11:18:23 -05:00
4 changed files with 13 additions and 9 deletions

View file

@ -5,7 +5,9 @@ when withDir(thisDir(), system.fileExists("nimble.paths")):
# end Nimble config
task updateLock, "update nix lock.json":
rmFile "nimble.lock"
rmDir "nimbledeps/pkgs2"
exec "nimble lock -l"
exec "nix run 'github:daylinmorgan/nnl' -- nimble.lock -o:lock.json"
exec "nimble setup -l"

View file

@ -8,5 +8,5 @@ buildNimblePackage {
src = lib.cleanSource ./.;
doCheck = false;
nimbleDepsHash = "sha256-2yuYtCq4nqwXlWA02RhoScfGprEVdZkxoaVSWPH0eL8=";
nimbleDepsHash = "sha256-frbWVz7ow3wAbQCVfDk9KWN8Va2jdkW9hp7OKxzltis=";
}

View file

@ -2,23 +2,23 @@
"version": 2,
"packages": {
"cligen": {
"version": "1.7.6",
"vcsRevision": "54f1da5d63cf7e116625e2392e85ae54c2b70719",
"version": "1.7.7",
"vcsRevision": "f50f887eacfe33866e22f8a0d322e29a1c830cf9",
"url": "https://github.com/c-blake/cligen.git",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "853785ddace4ee4f3c6c21bdf7f5e9ff0358eb3f"
"sha1": "237596b6be88dcf9ee0bd9732a7baaac526f0c07"
}
},
"hwylterm": {
"version": "0.1.0",
"vcsRevision": "7e82f7ba5a24d816a79b3a5ea49f32b4c7a5ef7e",
"vcsRevision": "56bb2bb7c1da402c2c52fb3f7f10620c7c2fca7e",
"url": "https://github.com/daylinmorgan/hwylterm",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "d6d97bdff3fcdfcf4b39b144fa5f27a6b9f9494d"
"sha1": "8810cf69a74de580e1ab08f0c153afbf33c8a98e"
}
}
},

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