File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 15
15
package config
16
16
17
17
import (
18
+ "fmt"
19
+
18
20
"github.com/AlecAivazis/survey/v2"
19
21
"github.com/mongodb/mongocli/internal/cli"
20
22
"github.com/mongodb/mongocli/internal/config"
@@ -117,7 +119,16 @@ func (opts *configOpts) Run() error {
117
119
return err
118
120
}
119
121
120
- return opts .Save ()
122
+ if err := opts .Save (); err != nil {
123
+ return err
124
+ }
125
+
126
+ fmt .Printf ("%s is all set now\n " , config .ToolName )
127
+ fmt .Printf ("You can use [%s config set] to change more settings. \n " , config .ToolName )
128
+ if config .Name () != config .DefaultProfile {
129
+ fmt .Printf ("To use this profile remember to set the flag [-%s %s]\n " , flag .ProfileShort , config .Name ())
130
+ }
131
+ return nil
121
132
}
122
133
123
134
func Builder () * cobra.Command {
You can’t perform that action at this time.
0 commit comments