Skip to content

Instance MethodConsoleKitTerminal

run(_:with:)

Runs an AnyCommand (CommandGroup or Command) of commands on this Console using the supplied CommandContext.
func run(_ command: any AnyCommand, with context: CommandContext) throws

Parameters

runnable

CommandGroup or Command to run.

input

CommandContext to parse CommandOptions and CommandArguments from.

Discussion

try console.run(group, with: context)