shark expose: put a local port on the internet through Hammerhead

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-10-27 17:00:53 -06:00
commit 61143d107c
15 files changed
+1538

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
// shark exposes a local port through your own Hammerhead and Blacktip, like ngrok.
package main
import (
"context"
"os"
"os/signal"
"syscall"
"git.veillax.com/Veillax/shark-expose/internal/cli"
)
// version is set at build time (-ldflags "-X main.version=...").
var version = "dev"
func main() {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
cli.Version = version
os.Exit(cli.Run(ctx, os.Args[1:], os.Stdout, os.Stderr))
}