You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
flog.Success("Successfully created environment %q", env.Name)
164
194
returnnil
165
195
},
166
196
}
167
-
cmd.Flags().StringVarP(&orgID, "org", "o", "", "ID of the organization the environment should be created under. (optional: false)")
168
-
cmd.Flags().StringVarP(&createReq.Name, "name", "n", "", "The name to assign to the environment. (optional: false)")
169
-
cmd.Flags().StringVarP(&createReq.ImageID, "img", "i", "", "ID of the image to base the environment off of. (optional: false)")
170
-
cmd.Flags().StringVarP(&createReq.ImageTag, "tag", "t", "", "The particular tag of the image the environment will be based off of. (default: latest, optional: true)")
171
-
cmd.Flags().Float32P("cores", "c", createReq.CPUCores, "The number of cpu cores the environment should be provisioned with. (default: 1, optional: true, supports fractional amounts)")
172
-
cmd.Flags().Float32P("memory", "m", createReq.MemoryGB, "The amount of RAM an environment should be provisioned with. (default: 1, optional: true, supports fractional amounts)")
173
-
cmd.Flags().IntP("disk", "d", createReq.DiskGB, "The amount of disk storage an environment should be provisioned with. (default:10, optional: true, supports whole numbers only)")
174
-
cmd.Flags().IntP("gpu", "g", createReq.GPUs, "The amount of disk storage to provision the environment with. (default:1, optional: true, supports whole numbers only)")
175
-
cmd.Flags().StringSliceP("services", "s", createReq.Services, "The services that the environment should be initialized with. (optional: true)")
176
-
cmd.MarkFlagRequired("org")
177
-
cmd.MarkFlagRequired("name")
178
-
cmd.MarkFlagRequired("img")
197
+
cmd.Flags().StringVarP(&org, "org", "o", defaultOrg, "ID of the organization the environment should be created under.")
198
+
cmd.Flags().StringVarP(&tag, "tag", "t", defaultImgTag, "The particular tag of the image the environment will be based off of.")
199
+
cmd.Flags().Float32P("cores", "c", defaultCPUCores, "The number of cpu cores the environment should be provisioned with.")
200
+
cmd.Flags().Float32P("memory", "m", defaultMemGB, "GB of RAM an environment should be provisioned with.")
201
+
cmd.Flags().IntP("disk", "d", defaultDiskGB, "GB of disk storage an environment should be provisioned with.")
202
+
cmd.Flags().IntP("gpu", "g", defaultGPUs, "The number GPUs an environment should be provisioned with.")
203
+
cmd.Flags().StringSliceP("services", "s", services, "The services that the environment should be initialized with.")
204
+
cmd.Flags().StringVarP(&img, "image", "i", "", "ID of the image to base the environment off of.")
0 commit comments