From 57962347f2c67134373b954751348c17271ff310 Mon Sep 17 00:00:00 2001 From: leigh capili Date: Wed, 26 Jan 2022 16:03:22 -0700 Subject: [PATCH] Output Usage for `flux get ` Signed-off-by: leigh capili --- cmd/flux/get_image.go | 3 --- cmd/flux/get_source.go | 4 ---- 2 files changed, 7 deletions(-) diff --git a/cmd/flux/get_image.go b/cmd/flux/get_image.go index 5cde4c24..41181189 100644 --- a/cmd/flux/get_image.go +++ b/cmd/flux/get_image.go @@ -25,9 +25,6 @@ var getImageCmd = &cobra.Command{ Aliases: []string{"image"}, Short: "Get image automation object status", Long: "The get image sub-commands print the status of image automation objects.", - RunE: func(cmd *cobra.Command, args []string) error { - return validateWatchOption(cmd, "images") - }, } func init() { diff --git a/cmd/flux/get_source.go b/cmd/flux/get_source.go index 0e3cd5e5..0be7acf0 100644 --- a/cmd/flux/get_source.go +++ b/cmd/flux/get_source.go @@ -25,10 +25,6 @@ var getSourceCmd = &cobra.Command{ Aliases: []string{"source"}, Short: "Get source statuses", Long: "The get source sub-commands print the statuses of the sources.", - RunE: func(cmd *cobra.Command, args []string) error { - - return validateWatchOption(cmd, "sources") - }, } func init() {