Clean up output to user

This commit is contained in:
sophia 2020-04-24 18:20:51 -04:00
parent a59eedb748
commit 1058a38f46
2 changed files with 9 additions and 6 deletions

View File

@ -34,13 +34,10 @@ module Vagrant
if @main_args.include?("-install-autocomplete")
# Install autocomplete scripts
written_paths = Vagrant::Util::InstallCLIAutocomplete.install
if written_paths.length > 0
@env.ui.info("Autocomplete installed at paths:")
written_paths.each do |p|
@env.ui.info("- #{p}")
end
if written_paths && written_paths.length > 0
@env.ui.info(I18n.t("vagrant.autocomplete.installed", paths: written_paths.join("\n- ")))
else
@env.ui.info("Autocomplete not installed")
@env.ui.info(I18n.t("vagrant.autocomplete.not_installed"))
end
return 0
end

View File

@ -2894,3 +2894,9 @@ en:
pushes:
file:
no_destination: "File destination must be specified."
autocomplete:
installed: |-
Autocomplete installed at paths:
- %{paths}
not_installed: "Autocomplete not installed"