File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Sources/hostmgr/commands/vm Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ struct VMDeleteCommand: ParsableCommand {
2424 try vm? . delete ( )
2525
2626 if let prefix = startingWith {
27- try VMLocalImageManager ( ) . lookupStoppedVMsBy ( prefix: prefix) . forEach { try $0. delete ( ) }
27+ try VMLocalImageManager ( ) . lookupVMsBy ( prefix: prefix) . forEach { try $0. delete ( ) }
2828 }
2929 }
3030}
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ struct VMLocalImageManager {
3030 try Parallels ( ) . lookupVM ( named: name) ? . delete ( )
3131 }
3232
33- func lookupStoppedVMsBy ( handle: String ) throws -> [ StoppedVM ] {
34- return try Parallels ( ) . lookupStoppedVMs ( ) . filter { vm in
33+ func lookupVMsBy ( handle: String ) throws -> [ VMProtocol ] {
34+ return try Parallels ( ) . lookupAllVMs ( ) . filter { vm in
3535 return vm. name == handle || vm. uuid == handle
3636 }
3737 }
3838
39- func lookupStoppedVMsBy ( prefix: String ) throws -> [ StoppedVM ] {
40- return try Parallels ( ) . lookupStoppedVMs ( ) . filter { vm in
39+ func lookupVMsBy ( prefix: String ) throws -> [ VMProtocol ] {
40+ return try Parallels ( ) . lookupAllVMs ( ) . filter { vm in
4141 return vm. name. hasPrefix ( prefix)
4242 }
4343 }
You can’t perform that action at this time.
0 commit comments