feat: reimplement influx secret
CLI command (#125)
* refactor: rename `getPassword` to `getSecret`
This commit is contained in:
@ -67,8 +67,8 @@ func (t *terminalStdio) GetStringInput(prompt, defaultValue string) (input strin
|
||||
return
|
||||
}
|
||||
|
||||
// GetPassword prompts the user for a password.
|
||||
func (t *terminalStdio) GetPassword(prompt string, minLen int) (password string, err error) {
|
||||
// GetSecret prompts the user for a password.
|
||||
func (t *terminalStdio) GetSecret(prompt string, minLen int) (password string, err error) {
|
||||
question := survey.Password{Message: prompt}
|
||||
opts := []survey.AskOpt{survey.WithStdio(t.Stdin, t.Stdout, t.Stderr)}
|
||||
if minLen > 0 {
|
||||
|
Reference in New Issue
Block a user