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