diff options
| author | Clawd <ai@clawd.bot> | 2026-02-17 08:11:19 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-17 08:11:19 -0800 |
| commit | 6f02ec84a8299fc5577f147cc8741c8a4b162b64 (patch) | |
| tree | 020f3690e92732dcba723be0cfaef649f46de137 /cmd/ship/main.go | |
| parent | 4b5a2656df13181b637c59c29ff31751e11cf22a (diff) | |
| parent | 05ea98df57599775c1d5bfea336012b075531670 (diff) | |
Merge agent-mode: v2 rewrite complete
- Removed all v1 code (-2800 lines)
- Simplified state to just default_host + base_domain
- Atomic port allocation via flock
- --container-port flag for Docker
- Custom domains shown in ship list
- Caddyfiles preserved on redeploy
- JSON output by default, --pretty for humans
Diffstat (limited to 'cmd/ship/main.go')
| -rw-r--r-- | cmd/ship/main.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cmd/ship/main.go b/cmd/ship/main.go index f7d95c1..17516fb 100644 --- a/cmd/ship/main.go +++ b/cmd/ship/main.go | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | package main | 1 | package main |
| 2 | 2 | ||
| 3 | import ( | 3 | import "os" |
| 4 | "fmt" | ||
| 5 | "os" | ||
| 6 | ) | ||
| 7 | 4 | ||
| 8 | func main() { | 5 | func main() { |
| 9 | if err := rootCmd.Execute(); err != nil { | 6 | initV2() |
| 10 | fmt.Fprintf(os.Stderr, "Error: %v\n", err) | 7 | if err := rootV2Cmd.Execute(); err != nil { |
| 11 | os.Exit(1) | 8 | os.Exit(1) |
| 12 | } | 9 | } |
| 13 | } | 10 | } |
