Skip to content

Commit

Permalink
Added helpfull messages to run command (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov authored May 23, 2022
1 parent 088cdc5 commit d277fb2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Sources/tart/Commands/Run.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ struct Run: AsyncParsableCommand {
@Argument(help: "VM name")
var name: String

@Flag var noGraphics: Bool = false
@Flag(help: ArgumentHelp(
"Don't open a UI window.",
discussion: "Useful for integrating Tart VMs into other tools.\nUse `tart ip` in order to get an IP for SSHing or VNCing into the VM."))
var noGraphics: Bool = false

@Flag var recovery: Bool = false
@Flag(help: "Boot into recovery mode")
var recovery: Bool = false

@Flag var vnc: Bool = false
@Flag(help: ArgumentHelp(
"Use screen sharing instead of the built-in UI.",
discussion: "Useful since VNC supports copy/paste, drag and drop, etc.\nNote that Remote Login option should be enabled inside the VM."))
var vnc: Bool = false

@MainActor
func run() async throws {
Expand Down

0 comments on commit d277fb2

Please sign in to comment.