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

Function init

cmd/modify.go:34–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func init() {
35 modifyCmd.Flags().String("gpu", "", "GPU type (a6000, a100, h100)")
36 modifyCmd.Flags().Int("num-gpus", 0, "Number of GPUs: 1, 2, 4, or 8")
37 modifyCmd.Flags().Int("vcpus", 0, "CPU cores: options vary by GPU type and count")
38 modifyCmd.Flags().Int("disk", 0, "Disk size in GB (cannot shrink, max depends on config)")
39 modifyCmd.Flags().Int("disk-size-gb", 0, "Disk size in GB (cannot shrink, max depends on config)")
40 _ = modifyCmd.Flags().MarkHidden("disk-size-gb")
41
42 modifyCmd.SetHelpFunc(wrapHelp(helpmenus.RenderModifyHelp))
43
44 rootCmd.AddCommand(modifyCmd)
45}
46
47func runModify(cmd *cobra.Command, args []string) error {
48 client, err := getAuthenticatedClient()

Callers

nothing calls this directly

Calls 1

wrapHelpFunction · 0.85

Tested by

no test coverage detected