Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ecba6d

Browse files
committed
Add mask for session token prompt
1 parent 0a43941 commit 5ecba6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/login.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ func login() *cobra.Command {
144144

145145
apiKey, err := prompt(cmd, &promptui.Prompt{
146146
Label: "Paste your token here:",
147+
Mask: '*',
147148
Validate: func(token string) error {
148149
client.SessionToken = token
149150
_, err := client.User(cmd.Context(), "me")

0 commit comments

Comments
 (0)