File tree 2 files changed +0
-23
lines changed
2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 105
105
106
106
<command name =" export" code =" coreexpo" description =" Export a virtual machine to a specified location." >
107
107
<cocoa class =" UTMScriptingExportCommand" />
108
- <access-group identifier =" *" />
109
108
<direct-parameter type =" virtual machine" requires-access =" r" description =" The virtual machine to export." />
110
109
<parameter name =" to" code =" efil" type =" file" description =" Location to export the VM to." >
111
110
<cocoa key =" file" />
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ struct UTMCtl: ParsableCommand {
36
36
IPAddress . self,
37
37
Clone . self,
38
38
Delete . self,
39
- Export . self,
40
39
USB . self
41
40
]
42
41
)
@@ -523,27 +522,6 @@ extension UTMCtl {
523
522
}
524
523
}
525
524
526
- extension UTMCtl {
527
- struct Export : UTMAPICommand {
528
- static var configuration = CommandConfiguration (
529
- abstract: " Export a virtual machine and all its data to a specified location. "
530
- )
531
-
532
- @OptionGroup var environment : EnvironmentOptions
533
-
534
- @OptionGroup var identifer : VMIdentifier
535
-
536
- @Option var path : String
537
-
538
- func run( with application: UTMScriptingApplication ) throws {
539
- let vm = try virtualMachine ( forIdentifier: identifer, in: application)
540
- // TODO: Make sure the URL is writable as required by data.export
541
- let exportUrl = URL ( fileURLWithPath: path)
542
- vm. exportTo!( exportUrl)
543
- }
544
- }
545
- }
546
-
547
525
extension UTMCtl {
548
526
struct USB : ParsableCommand {
549
527
static var configuration = CommandConfiguration (
You can’t perform that action at this time.
0 commit comments