onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
242 stars 28 forks source link

Ask with hidden = true and default - displays the password #117

Closed bsutton closed 3 years ago

bsutton commented 3 years ago

If you use:

settings['password'] = ask('password:', defaultValue: settings['password'] as String, validator: Ask.required, hidden: true);

password: [The password is shown here]

The Ask will display the default password. If the hidden option is true then Ask should display some text to indicate that a default is available but not the password.

password: [*****]

bsutton commented 3 years ago

resolved in 0.25