Pass in echo/secret ui input setting

This commit is contained in:
sophia 2022-08-30 15:18:21 -05:00
parent 1d5dd3d14b
commit 8bdb5e797d
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ module Vagrant
def ask(message, **opts)
opts[:style] ||= :detail
opts[:echo] = true if !opts.key?(:echo)
@client.input(message.gsub("%", "%%"), **opts)
end

View File

@ -33,7 +33,7 @@ module VagrantPlugins
input: SDK::TerminalUI::Event::Input.new(
prompt: prompt,
style: STYLE[:info],
secret: !!opts[:echo]
secret: !opts[:echo]
)
),
].each