Pass in echo/secret ui input setting
This commit is contained in:
parent
1d5dd3d14b
commit
8bdb5e797d
@ -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
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ module VagrantPlugins
|
||||
input: SDK::TerminalUI::Event::Input.new(
|
||||
prompt: prompt,
|
||||
style: STYLE[:info],
|
||||
secret: !!opts[:echo]
|
||||
secret: !opts[:echo]
|
||||
)
|
||||
),
|
||||
].each
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user