Protocol
AnyCommand
A type-erased
Command.protocol AnyCommand : AnyAsyncCommand
Topics
Instance Properties
var help: StringText that will be displayed when--helpis passed.
Instance Methods
func outputAutoComplete(using: inout CommandContext) throwsfunc outputHelp(using: inout CommandContext) throwsfunc renderCompletionFunctions(using: CommandContext, shell: Shell) -> StringRenders the shell completion script functions for the command and any descendent subcommands.func renderCompletionScript(using: CommandContext, shell: Shell) -> StringReturns the complete contents of a completion script for the givenshellforselfand, recursively, all of its descendent subcommands.func run(using: inout CommandContext) throwsRuns the command against the supplied input.
Relationships
Inherits From
AnyAsyncCommandSwift.SendableSwift.SendableMetatype