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" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/bin
|
||||
ln -s ${tunnel}/bin/tunnel $out/bin
|
||||
'';
|
||||
|
||||
|
|
|
@ -8,5 +8,5 @@ buildNimblePackage {
|
|||
|
||||
src = lib.cleanSource ./.;
|
||||
doCheck = false;
|
||||
nimbleDepsHash = "sha256-uNQy3EbNvwFlkPVxDrK1ptZ6rmxV4lQj2DYqRC8i8i8=";
|
||||
nimbleDepsHash = "sha256-F83auZWVeIYXPBb7Zn2f1/mHEMB9pjpgeYz5UYHlu+0=";
|
||||
}
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
"packages": {
|
||||
"hwylterm": {
|
||||
"version": "0.1.0",
|
||||
"vcsRevision": "a4e0f3fc7b34bac8e448dd35f58012d07dd4a0d0",
|
||||
"vcsRevision": "65a952e9f0d75659d39f8a3b146753e291ee0a66",
|
||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||
"downloadMethod": "git",
|
||||
"dependencies": [],
|
||||
"checksums": {
|
||||
"sha1": "848f75dc1bc910560e5e0038bf0a9ebf8d096385"
|
||||
"sha1": "10894d492bbe1d0ea32ee9bb0686abfcd3b0b0fe"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -48,9 +48,10 @@ when isMainModule:
|
|||
import hwylterm/[hwylcli]
|
||||
hwylCli:
|
||||
name "tunnel"
|
||||
settings NoArgsShowHelp
|
||||
settings ShowHelp
|
||||
subcommands:
|
||||
--- up
|
||||
|
||||
[up]
|
||||
? "[b]tunnel up[/] [green]host[/] [[[faint]-h|-p[/]]"
|
||||
... "activate a tunnel"
|
||||
required port
|
||||
|
@ -63,16 +64,19 @@ when isMainModule:
|
|||
run:
|
||||
let host = checkHost(args)
|
||||
activateTunnel(host, port)
|
||||
--- down
|
||||
|
||||
[down]
|
||||
? "[b]tunnel down[/] [green]host[/] [[[faint]-h[/]]"
|
||||
... "disable all tunnels for a host"
|
||||
run:
|
||||
let host = checkHost(args)
|
||||
deactivateTunnels(host)
|
||||
--- show
|
||||
|
||||
[show]
|
||||
... "show active connections"
|
||||
run: showTunnels()
|
||||
--- kill
|
||||
|
||||
[kill]
|
||||
... "kill all open tunnels"
|
||||
run: killTunnels()
|
||||
|
|
@ -4,11 +4,10 @@ version = "0.1.0"
|
|||
author = "Daylin Morgan"
|
||||
description = "A new awesome nimble package"
|
||||
license = "MIT"
|
||||
srcDir = "."
|
||||
srcDir = "src"
|
||||
bin = @["tunnel"]
|
||||
|
||||
|
||||
# Dependencies
|
||||
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