@@ -11,7 +11,7 @@ import (
1111 "github.com/spf13/cobra"
1212)
1313
14- // loginCmdRegister registers the login command
14+ // loginCmdRegister registers the login command.
1515func loginCmdRegister (root * cobra.Command ) {
1616 var removeLogin bool
1717 var useSSH bool
@@ -50,7 +50,7 @@ func loginCmdRegister(root *cobra.Command) {
5050 root .AddCommand (logoutCmd )
5151}
5252
53- // login logs in the user
53+ // login logs in the user.
5454func login (removeLogin bool , useSSH bool , privateKey string , userName string , password string , args []string ) {
5555 configuration := env .GlobalConfiguration ()
5656
@@ -87,7 +87,7 @@ func login(removeLogin bool, useSSH bool, privateKey string, userName string, pa
8787 configuration .SaveConfiguration ()
8888}
8989
90- // setAuthWithParams sets the authentication with parameters
90+ // setAuthWithParams sets the authentication with parameters.
9191func setAuthWithParams (auth * env.Auth , useSSH bool , privateKey , userName , password string ) {
9292 auth .UseSSH = useSSH
9393 if auth .UseSSH || (privateKey != "" ) {
@@ -100,7 +100,7 @@ func setAuthWithParams(auth *env.Auth, useSSH bool, privateKey, userName, passwo
100100 }
101101}
102102
103- // setAuthInteractively sets the authentication interactively
103+ // setAuthInteractively sets the authentication interactively.
104104func setAuthInteractively (auth * env.Auth ) {
105105 authMethods := []string {"SSH Key" , "Username/Password" }
106106 selectedMethod , err := pterm .DefaultInteractiveSelect .
@@ -123,7 +123,7 @@ func setAuthInteractively(auth *env.Auth) {
123123 }
124124}
125125
126- // getPass gets the password
126+ // getPass gets the password.
127127func getPass (description string ) string {
128128 pass , err := pterm .DefaultInteractiveTextInput .WithMask ("•" ).Show (description )
129129 if err != nil {
@@ -132,7 +132,7 @@ func getPass(description string) string {
132132 return pass
133133}
134134
135- // getSSHKeyPath gets the ssh key path
135+ // getSSHKeyPath gets the ssh key path.
136136func getSSHKeyPath () string {
137137 usr , err := user .Current ()
138138 if err != nil {
0 commit comments