update hwylterm

This commit is contained in:
Daylin Morgan 2025-01-29 12:52:32 -06:00
parent 5f3d2cad26
commit 2a8a359181
Signed by: daylin
GPG key ID: 950D13E9719334AD
4 changed files with 8 additions and 9 deletions

View file

@ -8,5 +8,5 @@ buildNimblePackage {
src = lib.cleanSource ./.; src = lib.cleanSource ./.;
doCheck = false; doCheck = false;
nimbleDepsHash = "sha256-NajR821HbgR6TABZJOkMIf7EZq4dgDAZ02PZlKwtKCA="; nimbleDepsHash = "sha256-YWssZU4SyfoYbXl/IYsbc0TwEs7ZcwonjkEXHCrhZeA=";
} }

View file

@ -3,12 +3,12 @@
"packages": { "packages": {
"hwylterm": { "hwylterm": {
"version": "0.1.0", "version": "0.1.0",
"vcsRevision": "50d0ee5a3bbba88e1d73f5eb3cf0d1e9911885ca", "vcsRevision": "dbde9c91e972e101c6e9da4ad87a0b2fa6d1bee8",
"url": "https://github.com/daylinmorgan/hwylterm", "url": "https://github.com/daylinmorgan/hwylterm",
"downloadMethod": "git", "downloadMethod": "git",
"dependencies": [], "dependencies": [],
"checksums": { "checksums": {
"sha1": "7b353603c818f4be92238719c62bb97be7e00580" "sha1": "aa7def4e92d09001e407791bbe02f21c4d835158"
} }
} }
}, },

View file

@ -40,25 +40,24 @@ proc showTunnels() =
hwylCli: hwylCli:
name "tunnel" name "tunnel"
settings ShowHelp settings ShowHelp, InferShort, Propagate
subcommands: subcommands:
[up] [up]
... "activate a tunnel" ... "activate a tunnel"
args: positionals:
host string host string
required port
flags: flags:
port: port:
- p
T int T int
? "port number" ? "port number"
* 8555 * 8555
S Required
run: run:
activateTunnel(host, port) activateTunnel(host, port)
[down] [down]
... "disable all tunnels for a host" ... "disable all tunnels for a host"
args: positionals:
host string host string
run: run:
deactivateTunnels(host) deactivateTunnels(host)

View file

@ -9,5 +9,5 @@ bin = @["tunnel"]
# Dependencies # Dependencies
requires "nim >= 2.0.8" requires "nim >= 2.0.8"
requires "https://github.com/daylinmorgan/hwylterm#50d0ee5" requires "https://github.com/daylinmorgan/hwylterm#dbde9c91"