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

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add mask for session token prompt
  • Loading branch information
bryphe-coder committed Feb 17, 2022
commit 5ecba6da44254dea53768bad4573c29b015a0687
1 change: 1 addition & 0 deletions cli/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func login() *cobra.Command {

apiKey, err := prompt(cmd, &promptui.Prompt{
Label: "Paste your token here:",
Mask: '*',
Validate: func(token string) error {
client.SessionToken = token
_, err := client.User(cmd.Context(), "me")
Expand Down