commands/box: list has machine-readable output

This commit is contained in:
Mitchell Hashimoto 2013-11-24 11:42:24 -08:00
parent 15d639c8dc
commit 5cbc54d570
2 changed files with 17 additions and 0 deletions

View File

@ -30,6 +30,9 @@ module VagrantPlugins
# and which don't, since we plan on doing that transparently.
boxes.each do |name, provider, _v1|
@env.ui.info("#{name.ljust(longest_box_length)} (#{provider})", :prefix => false)
@env.ui.machine("box-name", name)
@env.ui.machine("box-provider", provider)
end
# Success, exit status 0

View File

@ -73,6 +73,20 @@ with the machine-readable output.
</tr>
</thead>
<tr>
<td>box-name</td>
<td>
Name of a box installed into Vagrant.
</td>
</tr>
<tr>
<td>box-provider</td>
<td>
Provider for an installed box.
</td>
</tr>
<tr>
<td>provider-name</td>
<td>