Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit f630420

Browse files
committed
Clarify variable
1 parent 51f8a81 commit f630420

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

internal/cmd/envs.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,16 @@ coder envs --user [email protected] ls -o json \
152152

153153
func createEnvCmd() *cobra.Command {
154154
var (
155-
org string
156-
cpu float32
157-
memory float32
158-
disk int
159-
gpus int
160-
img string
161-
tag string
162-
follow bool
163-
useCVM bool
164-
useAS bool
155+
org string
156+
cpu float32
157+
memory float32
158+
disk int
159+
gpus int
160+
img string
161+
tag string
162+
follow bool
163+
useCVM bool
164+
enableAutostart bool
165165
)
166166

167167
cmd := &cobra.Command{
@@ -214,7 +214,7 @@ coder envs create my-new-powerful-env --cpu 12 --disk 100 --memory 16 --image ub
214214
DiskGB: disk,
215215
GPUs: gpus,
216216
UseContainerVM: useCVM,
217-
EnableAutoStart: useAS,
217+
EnableAutoStart: enableAutostart,
218218
}
219219

220220
// if any of these defaulted to their zero value we provision
@@ -258,7 +258,7 @@ coder envs create my-new-powerful-env --cpu 12 --disk 100 --memory 16 --image ub
258258
cmd.Flags().StringVarP(&img, "image", "i", "", "name of the image to base the environment off of.")
259259
cmd.Flags().BoolVar(&follow, "follow", false, "follow buildlog after initiating rebuild")
260260
cmd.Flags().BoolVar(&useCVM, "container-based-vm", false, "deploy the environment as a Container-based VM")
261-
cmd.Flags().BoolVar(&useAS, "enable-autostart", false, "automatically start this environment at your preferred time.")
261+
cmd.Flags().BoolVar(&enableAutostart, "enable-autostart", false, "automatically start this environment at your preferred time.")
262262
_ = cmd.MarkFlagRequired("image")
263263
return cmd
264264
}

0 commit comments

Comments
 (0)