Compare commits
2 commits
aa0dbe4d05
...
d86dff8360
Author | SHA1 | Date | |
---|---|---|---|
d86dff8360 | |||
d650d80a6f |
4 changed files with 13 additions and 9 deletions
|
@ -5,7 +5,9 @@ when withDir(thisDir(), system.fileExists("nimble.paths")):
|
||||||
# end Nimble config
|
# end Nimble config
|
||||||
|
|
||||||
task updateLock, "update nix lock.json":
|
task updateLock, "update nix lock.json":
|
||||||
|
rmFile "nimble.lock"
|
||||||
|
rmDir "nimbledeps/pkgs2"
|
||||||
exec "nimble lock -l"
|
exec "nimble lock -l"
|
||||||
exec "nix run 'github:daylinmorgan/nnl' -- nimble.lock -o:lock.json"
|
exec "nimble setup -l"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,5 +8,5 @@ buildNimblePackage {
|
||||||
|
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
nimbleDepsHash = "sha256-2yuYtCq4nqwXlWA02RhoScfGprEVdZkxoaVSWPH0eL8=";
|
nimbleDepsHash = "sha256-frbWVz7ow3wAbQCVfDk9KWN8Va2jdkW9hp7OKxzltis=";
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,23 +2,23 @@
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"packages": {
|
"packages": {
|
||||||
"cligen": {
|
"cligen": {
|
||||||
"version": "1.7.6",
|
"version": "1.7.7",
|
||||||
"vcsRevision": "54f1da5d63cf7e116625e2392e85ae54c2b70719",
|
"vcsRevision": "f50f887eacfe33866e22f8a0d322e29a1c830cf9",
|
||||||
"url": "https://github.com/c-blake/cligen.git",
|
"url": "https://github.com/c-blake/cligen.git",
|
||||||
"downloadMethod": "git",
|
"downloadMethod": "git",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"checksums": {
|
"checksums": {
|
||||||
"sha1": "853785ddace4ee4f3c6c21bdf7f5e9ff0358eb3f"
|
"sha1": "237596b6be88dcf9ee0bd9732a7baaac526f0c07"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hwylterm": {
|
"hwylterm": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"vcsRevision": "7e82f7ba5a24d816a79b3a5ea49f32b4c7a5ef7e",
|
"vcsRevision": "56bb2bb7c1da402c2c52fb3f7f10620c7c2fca7e",
|
||||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||||
"downloadMethod": "git",
|
"downloadMethod": "git",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"checksums": {
|
"checksums": {
|
||||||
"sha1": "d6d97bdff3fcdfcf4b39b144fa5f27a6b9f9494d"
|
"sha1": "8810cf69a74de580e1ab08f0c153afbf33c8a98e"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -38,8 +38,10 @@ proc killCmd() =
|
||||||
let controllers = collectControllers()
|
let controllers = collectControllers()
|
||||||
if controllers.len == 0: quit 0
|
if controllers.len == 0: quit 0
|
||||||
for c in controllers:
|
for c in controllers:
|
||||||
echo bbfmt"removing file: [b]{c}"
|
let host = c.lastPathPart().split("-")[2]
|
||||||
removeFile c
|
let code = exitSsh(host)
|
||||||
|
if code != 0:
|
||||||
|
quit $bb"[red][[Error]failed to exit connection for host: " & host
|
||||||
|
|
||||||
proc show() =
|
proc show() =
|
||||||
## show active connections
|
## show active connections
|
||||||
|
|
Loading…
Reference in a new issue