Skip to content

Instance MethodConsoleKitTerminal

run(_:with:)

Runs an AnyAsyncCommand (AsyncCommandGroup or AsyncCommand) of commands on this Console using the supplied CommandContext.
func run(_ command: any AnyAsyncCommand, with context: CommandContext) async throws

Parameters

runnable

AsyncCommandGroup or AsyncCommand to run.

input

CommandContext to parse CommandOptions and CommandArguments from.

Discussion

try console.run(group, with: context)