diff options
Diffstat (limited to 'cmd/ship/remove.go')
| -rw-r--r-- | cmd/ship/remove.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ship/remove.go b/cmd/ship/remove.go index 8380e87..b55d0c8 100644 --- a/cmd/ship/remove.go +++ b/cmd/ship/remove.go | |||
| @@ -18,6 +18,9 @@ var removeCmd = &cobra.Command{ | |||
| 18 | 18 | ||
| 19 | func runRemove(cmd *cobra.Command, args []string) error { | 19 | func runRemove(cmd *cobra.Command, args []string) error { |
| 20 | name := args[0] | 20 | name := args[0] |
| 21 | if err := validateName(name); err != nil { | ||
| 22 | return err | ||
| 23 | } | ||
| 21 | 24 | ||
| 22 | st, err := state.Load() | 25 | st, err := state.Load() |
| 23 | if err != nil { | 26 | if err != nil { |
