@@ -10,7 +10,6 @@ import (
10
10
11
11
"cdr.dev/coder-cli/coder-sdk"
12
12
"cdr.dev/coder-cli/internal/coderutil"
13
- "cdr.dev/coder-cli/internal/config"
14
13
"cdr.dev/coder-cli/internal/x/xcobra"
15
14
"cdr.dev/coder-cli/pkg/clog"
16
15
"cdr.dev/coder-cli/pkg/tablewriter"
@@ -184,9 +183,6 @@ func createEnvCmd() *cobra.Command {
184
183
Example : `# create a new environment using default resource amounts
185
184
coder envs create my-new-env --image ubuntu
186
185
coder envs create my-new-powerful-env --cpu 12 --disk 100 --memory 16 --image ubuntu` ,
187
- PreRun : func (cmd * cobra.Command , args []string ) {
188
- autoStartInfo ()
189
- },
190
186
RunE : func (cmd * cobra.Command , args []string ) error {
191
187
ctx := cmd .Context ()
192
188
if img == "" {
@@ -440,9 +436,6 @@ func editEnvCmd() *cobra.Command {
440
436
Example : `coder envs edit back-end-env --cpu 4
441
437
442
438
coder envs edit back-end-env --disk 20` ,
443
- PreRun : func (cmd * cobra.Command , args []string ) {
444
- autoStartInfo ()
445
- },
446
439
RunE : func (cmd * cobra.Command , args []string ) error {
447
440
ctx := cmd .Context ()
448
441
client , err := newClient (ctx )
@@ -684,18 +677,3 @@ func buildUpdateReq(ctx context.Context, client coder.Client, conf updateConf) (
684
677
}
685
678
return & updateReq , nil
686
679
}
687
-
688
- // TODO (Grey): Remove education in a future non-patch release.
689
- func autoStartInfo () {
690
- var preferencesURI string
691
-
692
- accessURI , err := config .URL .Read ()
693
- if err != nil {
694
- // Error is fairly benign in this case, fallback to relative URI
695
- preferencesURI = "/preferences"
696
- } else {
697
- preferencesURI = fmt .Sprintf ("%s%s" , accessURI , "/preferences?tab=autostart" )
698
- }
699
-
700
- clog .LogInfo ("⚡NEW: Automate daily environment startup" , "Visit " + preferencesURI + " to configure your preferred time" )
701
- }
0 commit comments