Merge pull request #3441 from berendt/sort_versions_and_print_listing
commands/box/remove: sort versions and print them as listing
This commit is contained in:
commit
44d7c6849d
|
@ -58,14 +58,14 @@ module Vagrant
|
|||
raise Errors::BoxRemoveMultiVersion,
|
||||
name: box_name,
|
||||
provider: box_provider.to_s,
|
||||
versions: all_versions.join(", ")
|
||||
versions: all_versions.sort.map! { |k| " * #{k}" }.join("\n")
|
||||
end
|
||||
elsif !all_versions.include?(box_version)
|
||||
raise Errors::BoxRemoveVersionNotFound,
|
||||
name: box_name,
|
||||
provider: box_provider.to_s,
|
||||
version: box_version,
|
||||
versions: all_versions.join(", ")
|
||||
versions: all_versions.sort.map! { |k| " * #{k}" }.join("\n")
|
||||
end
|
||||
|
||||
box = env[:box_collection].find(
|
||||
|
|
Loading…
Reference in New Issue