tart delete: allow removing multiple VMs at once (#257)

This commit is contained in:
Nikolay Edigaryev
2022-09-27 10:30:44 -04:00
committed by GitHub
parent afbc2e0764
commit e90d53eceb
+4 -2
View File
@@ -6,11 +6,13 @@ struct Delete: AsyncParsableCommand {
static var configuration = CommandConfiguration(abstract: "Delete a VM")
@Argument(help: "VM name")
var name: String
var name: [String]
func run() async throws {
do {
try VMStorageHelper.delete(name)
for it in name {
try VMStorageHelper.delete(it)
}
Foundation.exit(0)
} catch {