modifyCmd creates a fresh cobra command with modify flags for testing.
()
| 30 | |
| 31 | // modifyCmd creates a fresh cobra command with modify flags for testing. |
| 32 | func newModifyCmd() *cobra.Command { |
| 33 | cmd := &cobra.Command{Use: "modify"} |
| 34 | cmd.Flags().String("gpu", "", "") |
| 35 | cmd.Flags().Int("num-gpus", 0, "") |
| 36 | cmd.Flags().Int("vcpus", 0, "") |
| 37 | cmd.Flags().Int("disk", 0, "") |
| 38 | return cmd |
| 39 | } |
| 40 | |
| 41 | func setFlags(cmd *cobra.Command, flags map[string]string) { |
| 42 | for k, v := range flags { |
no outgoing calls
no test coverage detected