@@ -51,8 +51,8 @@ Enter 'atlas cluster watch %s' to learn when your cluster is available.
5151
5252const quickstartTemplateStoreWarning = `
5353Please store your database authentication access details in a secure location:
54- username : %s
55- password : %s
54+ Database User Username : %s
55+ Database User Password : %s
5656`
5757
5858const quickstartTemplateIntro = `Press [Enter] to use the default values.
@@ -177,7 +177,8 @@ func (opts *Opts) Run() error {
177177 return err
178178 }
179179
180- fmt .Printf (`We are deploying %s...` , opts .ClusterName )
180+ fmt .Printf (`We are deploying %s...
181+ ` , opts .ClusterName )
181182
182183 fmt .Printf (quickstartTemplateStoreWarning , opts .DBUsername , opts .DBUserPassword )
183184 opts .setupCloseHandler ()
@@ -189,8 +190,6 @@ func (opts *Opts) Run() error {
189190 return er
190191 }
191192
192- fmt .Print (quickstartTemplateCluster )
193-
194193 fmt .Print ("Cluster created." )
195194
196195 if err := opts .loadSampleData (); err != nil {
@@ -200,6 +199,11 @@ func (opts *Opts) Run() error {
200199 if err := opts .askMongoShellQuestion (); err != nil {
201200 return err
202201 }
202+
203+ // If user does not want to open MongoShell, skip everything below
204+ if ! opts .runMongoShell {
205+ return nil
206+ }
203207 // Get cluster's connection string
204208 cluster , err := opts .store .AtlasCluster (opts .ConfigProjectID (), opts .ClusterName )
205209 if err != nil {
0 commit comments