core: output available commands in machine-readable

This commit is contained in:
Mitchell Hashimoto 2013-11-26 19:06:33 -08:00
parent 798432febe
commit fef24b2b24
2 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,7 @@ module Vagrant
commands.keys.sort.each do |key|
o.separator " #{key.ljust(longest+2)} #{commands[key]}"
@env.ui.machine("cli-command", key.dup)
end
o.separator ""

View File

@ -99,6 +99,13 @@ with the machine-readable output.
</td>
</tr>
<tr>
<td>cli-command</td>
<td>
A subcommand of <code>vagrant</code> that is available.
</td>
</tr>
<tr>
<td>provider-name</td>
<td>