From 87752492d0dc7df3cf78011d5ce315a3eb0cad51 Mon Sep 17 00:00:00 2001 From: bndw Date: Fri, 23 Jan 2026 21:52:50 -0800 Subject: Restructure CLI with Cobra Replace custom switch-based routing with Cobra for cleaner command hierarchy. Reorganize commands into logical groups: - Root command handles deployment (--binary, --static, --domain, etc.) - App management at top level: list, logs, status, restart, remove - env subcommand group: list, set, unset - host subcommand group: init, status, update, ssh - Standalone: ui (renamed from webui), version Add version command with ldflags support for build info. --- go.mod | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'go.mod') diff --git a/go.mod b/go.mod index 0d29deb..b048ba7 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,13 @@ module github.com/bdw/deploy go 1.21 -require golang.org/x/crypto v0.31.0 +require ( + github.com/spf13/cobra v1.10.2 + golang.org/x/crypto v0.31.0 +) -require golang.org/x/sys v0.28.0 // indirect +require ( + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/spf13/pflag v1.0.9 // indirect + golang.org/x/sys v0.28.0 // indirect +) -- cgit v1.2.3