summaryrefslogtreecommitdiffstats
path: root/cmd/ship/logs.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/ship/logs.go')
-rw-r--r--cmd/ship/logs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/ship/logs.go b/cmd/ship/logs.go
index 4d85fe1..4c58a9c 100644
--- a/cmd/ship/logs.go
+++ b/cmd/ship/logs.go
@@ -22,6 +22,9 @@ func init() {
22 22
23func runLogs(cmd *cobra.Command, args []string) error { 23func runLogs(cmd *cobra.Command, args []string) error {
24 name := args[0] 24 name := args[0]
25 if err := validateName(name); err != nil {
26 return err
27 }
25 follow, _ := cmd.Flags().GetBool("follow") 28 follow, _ := cmd.Flags().GetBool("follow")
26 lines, _ := cmd.Flags().GetInt("lines") 29 lines, _ := cmd.Flags().GetInt("lines")
27 30