summaryrefslogtreecommitdiffstats
path: root/cmd/ship/validate.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/ship/validate.go')
-rw-r--r--cmd/ship/validate.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/ship/validate.go b/cmd/ship/validate.go
new file mode 100644
index 0000000..00275af
--- /dev/null
+++ b/cmd/ship/validate.go
@@ -0,0 +1,9 @@
1package main
2
3import "github.com/bdw/ship/internal/state"
4
5// validateName checks that an app/project name is safe for use in shell
6// commands, file paths, systemd units, and DNS labels.
7func validateName(name string) error {
8 return state.ValidateName(name)
9}