commands/box: list has machine-readable output
This commit is contained in:
parent
15d639c8dc
commit
5cbc54d570
|
@ -30,6 +30,9 @@ module VagrantPlugins
|
||||||
# and which don't, since we plan on doing that transparently.
|
# and which don't, since we plan on doing that transparently.
|
||||||
boxes.each do |name, provider, _v1|
|
boxes.each do |name, provider, _v1|
|
||||||
@env.ui.info("#{name.ljust(longest_box_length)} (#{provider})", :prefix => false)
|
@env.ui.info("#{name.ljust(longest_box_length)} (#{provider})", :prefix => false)
|
||||||
|
|
||||||
|
@env.ui.machine("box-name", name)
|
||||||
|
@env.ui.machine("box-provider", provider)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Success, exit status 0
|
# Success, exit status 0
|
||||||
|
|
|
@ -73,6 +73,20 @@ with the machine-readable output.
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</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>
|
<tr>
|
||||||
<td>provider-name</td>
|
<td>provider-name</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in New Issue