@@ -42,7 +42,7 @@ func NewLoginCommand(globalClientOpts *connectors.ClientOptions) *cobra.Command
4242 Long : "Login into Microcks instance" ,
4343 Example : `microcks login http://locahost:8080
4444
45- # Provide name to your logged in context (Defautl context name is server name)
45+ # Provide name to your logged in context (Default context name is server name)
4646microcks login http://localhost:8080 --name
4747
4848# Provide username and password as flags
@@ -61,7 +61,7 @@ microcks login http://localhost:8080 --sso --sso-launch-browser=false
6161 ctx := cmd .Context ()
6262 var server string
6363
64- //Chekc if server name is provided or not
64+ //Checkc if server name is provided or not
6565 if len (args ) != 1 {
6666 cmd .HelpFunc ()(cmd , args )
6767 os .Exit (1 )
@@ -104,14 +104,14 @@ microcks login http://localhost:8080 --sso --sso-launch-browser=false
104104
105105 if keycloakUrl == "null" {
106106 localConfig .UpsertServer (config.Server {
107- Server : server ,
108- InsecureTLS : true ,
109- KeycloackEnable : false ,
107+ Server : server ,
108+ InsecureTLS : true ,
109+ KeycloakEnable : false ,
110110 })
111111 fmt .Print ("No login required...\n " )
112112 } else {
113113 if ! sso {
114- //Chek for the enviroment variables
114+ //Check for the enviroment variables
115115 clientID := os .Getenv ("MICROCKS_CLIENT_ID" )
116116 clientSecret := os .Getenv ("MICROCKS_CLIENT_SECRET" )
117117
@@ -145,13 +145,13 @@ microcks login http://localhost:8080 --sso --sso-launch-browser=false
145145 fmt .Printf ("'%s' logged in successfully\n " , em )
146146
147147 localConfig .UpsertServer (config.Server {
148- Server : server ,
149- InsecureTLS : true ,
150- KeycloackEnable : true ,
148+ Server : server ,
149+ InsecureTLS : true ,
150+ KeycloakEnable : true ,
151151 })
152152 }
153153
154- localConfig .UpserAuth (authCfg )
154+ localConfig .UpsertAuth (authCfg )
155155
156156 localConfig .UpsertUser (config.User {
157157 Name : server ,
0 commit comments