updates
This commit is contained in:
parent
c81c065701
commit
32adb124b3
5 changed files with 15 additions and 12 deletions
2
meta.nix
2
meta.nix
|
@ -15,7 +15,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s ${tunnel}/bin/tunnel $out/bin
|
ln -s ${tunnel}/bin/tunnel $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -8,5 +8,5 @@ buildNimblePackage {
|
||||||
|
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
nimbleDepsHash = "sha256-uNQy3EbNvwFlkPVxDrK1ptZ6rmxV4lQj2DYqRC8i8i8=";
|
nimbleDepsHash = "sha256-F83auZWVeIYXPBb7Zn2f1/mHEMB9pjpgeYz5UYHlu+0=";
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"hwylterm": {
|
"hwylterm": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"vcsRevision": "a4e0f3fc7b34bac8e448dd35f58012d07dd4a0d0",
|
"vcsRevision": "65a952e9f0d75659d39f8a3b146753e291ee0a66",
|
||||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||||
"downloadMethod": "git",
|
"downloadMethod": "git",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"checksums": {
|
"checksums": {
|
||||||
"sha1": "848f75dc1bc910560e5e0038bf0a9ebf8d096385"
|
"sha1": "10894d492bbe1d0ea32ee9bb0686abfcd3b0b0fe"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -48,9 +48,10 @@ when isMainModule:
|
||||||
import hwylterm/[hwylcli]
|
import hwylterm/[hwylcli]
|
||||||
hwylCli:
|
hwylCli:
|
||||||
name "tunnel"
|
name "tunnel"
|
||||||
settings NoArgsShowHelp
|
settings ShowHelp
|
||||||
subcommands:
|
subcommands:
|
||||||
--- up
|
|
||||||
|
[up]
|
||||||
? "[b]tunnel up[/] [green]host[/] [[[faint]-h|-p[/]]"
|
? "[b]tunnel up[/] [green]host[/] [[[faint]-h|-p[/]]"
|
||||||
... "activate a tunnel"
|
... "activate a tunnel"
|
||||||
required port
|
required port
|
||||||
|
@ -63,16 +64,19 @@ when isMainModule:
|
||||||
run:
|
run:
|
||||||
let host = checkHost(args)
|
let host = checkHost(args)
|
||||||
activateTunnel(host, port)
|
activateTunnel(host, port)
|
||||||
--- down
|
|
||||||
|
[down]
|
||||||
? "[b]tunnel down[/] [green]host[/] [[[faint]-h[/]]"
|
? "[b]tunnel down[/] [green]host[/] [[[faint]-h[/]]"
|
||||||
... "disable all tunnels for a host"
|
... "disable all tunnels for a host"
|
||||||
run:
|
run:
|
||||||
let host = checkHost(args)
|
let host = checkHost(args)
|
||||||
deactivateTunnels(host)
|
deactivateTunnels(host)
|
||||||
--- show
|
|
||||||
|
[show]
|
||||||
... "show active connections"
|
... "show active connections"
|
||||||
run: showTunnels()
|
run: showTunnels()
|
||||||
--- kill
|
|
||||||
|
[kill]
|
||||||
... "kill all open tunnels"
|
... "kill all open tunnels"
|
||||||
run: killTunnels()
|
run: killTunnels()
|
||||||
|
|
|
@ -4,11 +4,10 @@ version = "0.1.0"
|
||||||
author = "Daylin Morgan"
|
author = "Daylin Morgan"
|
||||||
description = "A new awesome nimble package"
|
description = "A new awesome nimble package"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "."
|
srcDir = "src"
|
||||||
bin = @["tunnel"]
|
bin = @["tunnel"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
requires "nim >= 2.0.8"
|
requires "nim >= 2.0.8"
|
||||||
requires "https://github.com/daylinmorgan/hwylterm#a4e0f3f"
|
requires "https://github.com/daylinmorgan/hwylterm#65a952e"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue