@@ -76,19 +76,19 @@ func Shell(w io.Writer, projectDir string, githubUsername string) error {
76
76
}
77
77
78
78
if vmHostname == "" {
79
- stepVM := stepper . Start (w , "Creating a virtual machine on the cloud..." )
79
+ color . New ( color . FgGreen ). Fprintln (w , "Creating a virtual machine on the cloud..." )
80
80
// Inspect the ssh ControlPath to check for existing connections
81
81
vmHostname = vmHostnameFromSSHControlPath ()
82
82
if vmHostname != "" {
83
83
debug .Log ("Using vmHostname from ssh socket: %v" , vmHostname )
84
- stepVM . Success ( "Detected existing virtual machine" )
84
+ color . New ( color . FgGreen ). Fprintln ( w , "Detected existing virtual machine" )
85
85
} else {
86
86
var region string
87
87
vmHostname , region , err = getVirtualMachine (sshClient )
88
88
if err != nil {
89
89
return err
90
90
}
91
- stepVM . Success ( "Created a virtual machine in %s" , fly .RegionName (region ))
91
+ color . New ( color . FgGreen ). Fprintf ( w , "Created a virtual machine in %s\n " , fly .RegionName (region ))
92
92
93
93
// We save the username to local file only after we get a successful response
94
94
// from the gateway, because the gateway will verify that the user's SSH keys
@@ -101,13 +101,13 @@ func Shell(w io.Writer, projectDir string, githubUsername string) error {
101
101
}
102
102
debug .Log ("vm_hostname: %s" , vmHostname )
103
103
104
- s2 := stepper . Start (w , "Starting file syncing..." )
104
+ color . New ( color . FgGreen ). Fprintln (w , "Starting file syncing..." )
105
105
err = syncFiles (username , vmHostname , projectDir )
106
106
if err != nil {
107
- s2 . Fail ( "Starting file syncing [FAILED]" )
107
+ color . New ( color . FgRed ). Fprintln ( w , "Starting file syncing [FAILED]" )
108
108
return err
109
109
}
110
- s2 . Success ( "File syncing started" )
110
+ color . New ( color . FgGreen ). Fprintln ( w , "File syncing started" )
111
111
112
112
s3 := stepper .Start (w , "Connecting to virtual machine..." )
113
113
time .Sleep (1 * time .Second )
0 commit comments