diff options
Diffstat (limited to 'cmd/ship/validate.go')
| -rw-r--r-- | cmd/ship/validate.go | 9 |
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 @@ | |||
| 1 | package main | ||
| 2 | |||
| 3 | import "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. | ||
| 7 | func validateName(name string) error { | ||
| 8 | return state.ValidateName(name) | ||
| 9 | } | ||
