MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / newModifyCmd

Function newModifyCmd

cmd/modify_test.go:32–39  ·  view source on GitHub ↗

modifyCmd creates a fresh cobra command with modify flags for testing.

()

Source from the content-addressed store, hash-verified

30
31// modifyCmd creates a fresh cobra command with modify flags for testing.
32func 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
41func setFlags(cmd *cobra.Command, flags map[string]string) {
42 for k, v := range flags {

Calls

no outgoing calls

Tested by

no test coverage detected