()
| 15 | const removeUsageLongHelp = `Remove one or more images.` |
| 16 | |
| 17 | func newRemoveCommand() *cobra.Command { |
| 18 | |
| 19 | remove := &removeCommand{} |
| 20 | |
| 21 | cmd := &cobra.Command{ |
| 22 | Use: "rm [OPTIONS] IMAGE [IMAGE...]", |
| 23 | DisableFlagsInUseLine: true, |
| 24 | SilenceUsage: true, |
| 25 | Short: removeUsageShortHelp, |
| 26 | Long: removeUsageLongHelp, |
| 27 | Args: remove.ValidateArgs, |
| 28 | RunE: func(cmd *cobra.Command, args []string) error { |
| 29 | return remove.Run(args) |
| 30 | }, |
| 31 | } |
| 32 | |
| 33 | return cmd |
| 34 | } |
| 35 | |
| 36 | type removeCommand struct{} |
| 37 |