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/validate.go | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 cmd/ship/validate.go (limited to 'cmd/ship/validate.go') diff --git a/cmd/ship/validate.go b/cmd/ship/validate.go deleted file mode 100644 index 00275af..0000000 --- a/cmd/ship/validate.go +++ /dev/null @@ -1,9 +0,0 @@ -package main - -import "github.com/bdw/ship/internal/state" - -// validateName checks that an app/project name is safe for use in shell -// commands, file paths, systemd units, and DNS labels. -func validateName(name string) error { - return state.ValidateName(name) -} -- cgit v1.2.3