feat: reimplement influx secret CLI command (#125)

* refactor: rename `getPassword` to `getSecret`
This commit is contained in:
Dane Strandboge
2021-06-21 13:33:51 -05:00
committed by GitHub
parent a4fdefc392
commit 23e73e9146
21 changed files with 1777 additions and 20 deletions

View File

@ -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 {