From 6093498b442ddf8a17fc2007b62187e977a7d557 Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:37:55 -0800 Subject: [PATCH] utmctl: remove Export command because it cannot work in sandbox --- Scripting/UTM.sdef | 1 - utmctl/UTMCtl.swift | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/Scripting/UTM.sdef b/Scripting/UTM.sdef index a9c4e3466..726b35b19 100644 --- a/Scripting/UTM.sdef +++ b/Scripting/UTM.sdef @@ -105,7 +105,6 @@ - diff --git a/utmctl/UTMCtl.swift b/utmctl/UTMCtl.swift index 4f48a7ea3..2b78dd723 100644 --- a/utmctl/UTMCtl.swift +++ b/utmctl/UTMCtl.swift @@ -36,7 +36,6 @@ struct UTMCtl: ParsableCommand { IPAddress.self, Clone.self, Delete.self, - Export.self, USB.self ] ) @@ -523,27 +522,6 @@ extension UTMCtl { } } -extension UTMCtl { - struct Export: UTMAPICommand { - static var configuration = CommandConfiguration( - abstract: "Export a virtual machine and all its data to a specified location." - ) - - @OptionGroup var environment: EnvironmentOptions - - @OptionGroup var identifer: VMIdentifier - - @Option var path: String - - func run(with application: UTMScriptingApplication) throws { - let vm = try virtualMachine(forIdentifier: identifer, in: application) - // TODO: Make sure the URL is writable as required by data.export - let exportUrl = URL(fileURLWithPath: path) - vm.exportTo!(exportUrl) - } - } -} - extension UTMCtl { struct USB: ParsableCommand { static var configuration = CommandConfiguration(