From 6b2c04728cd914f27ae62c1df0bf5df24ac9a628 Mon Sep 17 00:00:00 2001 From: Clawd Date: Tue, 17 Feb 2026 07:54:26 -0800 Subject: Remove v1 code, simplify state to just base_domain - Delete all v1 commands (deploy, init, list, status, remove, etc.) - Delete v1 env/ and host/ subcommand directories - Simplify state.go: remove NextPort, Apps, AllocatePort, etc. - Local state now only tracks default_host + base_domain per host - Ports and deploys are tracked on the server (/etc/ship/ports/) - host init now creates minimal state.json --- cmd/ship/main.go | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'cmd/ship/main.go') diff --git a/cmd/ship/main.go b/cmd/ship/main.go index 73d9a20..17516fb 100644 --- a/cmd/ship/main.go +++ b/cmd/ship/main.go @@ -1,25 +1,10 @@ package main -import ( - "fmt" - "os" -) +import "os" func main() { - // Use v2 (agent-first JSON) interface by default - // Set SHIP_V1=1 to use legacy human-formatted output - if os.Getenv("SHIP_V1") == "1" { - if err := rootCmd.Execute(); err != nil { - fmt.Fprintf(os.Stderr, "Error: %v\n", err) - os.Exit(1) - } - return - } - - // v2: JSON output by default initV2() if err := rootV2Cmd.Execute(); err != nil { - // Error already printed as JSON by commands os.Exit(1) } } -- cgit v1.2.3