package main import ( "fmt" "github.com/spf13/cobra" ) var imageCmd = &cobra.Command{ Use: "image", Short: "Manage images", } var imageDeleteCmd = &cobra.Command{ Use: "delete ", Short: "Delete an image by ID", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { fmt.Fprintln(cmd.OutOrStdout(), "not yet implemented") return nil }, } func init() { rootCmd.AddCommand(imageCmd) imageCmd.AddCommand(imageDeleteCmd) }