mirror of https://github.com/cirruslabs/tart.git
22 lines
378 B
Swift
22 lines
378 B
Swift
import ArgumentParser
|
|
import Dispatch
|
|
import SwiftUI
|
|
|
|
struct List: AsyncParsableCommand {
|
|
static var configuration = CommandConfiguration(abstract: "List created VMs")
|
|
|
|
func run() async throws {
|
|
do {
|
|
for vmURL in try VMStorage().list() {
|
|
print(vmURL)
|
|
}
|
|
|
|
Foundation.exit(0)
|
|
} catch {
|
|
print(error)
|
|
|
|
Foundation.exit(1)
|
|
}
|
|
}
|
|
}
|