mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-18 11:55:36 +02:00
* Ditch Foundation.exit()'s where feasible * Sentry integration * SwiftFormat * Upload symbols and sources to Sentry * Use Sentry Releases * Do not use ExitCode exceptions * Clarify why we need CustomNSError extension
17 lines
317 B
Swift
17 lines
317 B
Swift
import ArgumentParser
|
|
import Dispatch
|
|
import SwiftUI
|
|
|
|
struct Delete: AsyncParsableCommand {
|
|
static var configuration = CommandConfiguration(abstract: "Delete a VM")
|
|
|
|
@Argument(help: "VM name")
|
|
var name: [String]
|
|
|
|
func run() async throws {
|
|
for it in name {
|
|
try VMStorageHelper.delete(it)
|
|
}
|
|
}
|
|
}
|