Band-aid to prevent help subcommand from erroring

The code running in the help subcommand relies on Command plugins being
returned from the manager with their options hash. Stubbing in a blank
hash prevents the command from crashing

What we really need is for CommandOptions to be modeled and passed
through from Go to Ruby so :primary subcommands can be displayed, but
that can be a follow-on task from this quick fix.
This commit is contained in:
Paul Hinze 2022-07-15 11:25:50 -05:00
parent ae49b1f13f
commit f3dbc24a22
No known key found for this signature in database
GPG Key ID: 70B94C31D170FB29

View File

@ -181,7 +181,8 @@ module Vagrant
sf_class.plugin_name = plg[:name]
sf_class.type = plg[:type]
result.register(plg[:name].to_sym) do
[proc{sf_class}]
# TODO(phinze): wire through CommandOptions and return them here
[proc{sf_class}, {}]
end
end
end