Compare commits

..

2 commits

Author SHA1 Message Date
9031999c2f
todo 2024-10-11 12:11:17 -05:00
1a73e5bd78
actually bb the string 2024-10-11 12:10:07 -05:00
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
# tunnel-nim todo's # tunnel-nim todo's
- [ ] show no output from `tunnel up` on connection - [ ] show no output from `tunnel up` on connection
- [ ] add a `tunnel kill` command which removes all ssh control files
<!-- generated with <3 by daylinmorgan/todo --> <!-- generated with <3 by daylinmorgan/todo -->

View file

@ -34,7 +34,7 @@ proc show() =
collect(for _,p in walkDir(sshDir): p) collect(for _,p in walkDir(sshDir): p)
.map(extractFilename) .map(extractFilename)
.filterIt(it.startsWith("control")) .filterIt(it.startsWith("control"))
echo fmt"[yellow]{controllers.len}[/] active connections" echo bbfmt"[yellow]{controllers.len}[/] active connections"
if controllers.len == 0: quit 0 if controllers.len == 0: quit 0
echo "hosts:" echo "hosts:"
echo controllers.mapIt(" " & it.split('-')[1]).join("\n") echo controllers.mapIt(" " & it.split('-')[1]).join("\n")