Structure
CompletionAction
An action to be used in the shell completion script(s) to provide special shell completion behaviors for an
Option’s argument or a positional Argument.struct CompletionAction
Topics
Initializers
Instance Properties
let expressions: [Shell : String]The shell-specific implementations of the action.
Subscripts
Type Properties
static var `default`: CompletionActionThe emptyCompletionAction, which represents a no-op.
Type Methods
static func directories() -> CompletionActionCreates aCompletionActionthat uses a built-in function to generate directory matches.static func files(withExtensions: [String]) -> CompletionActionCreates aCompletionActionthat uses a built-in function to generate file matches.static func values([String]) -> CompletionActionCreates aCompletionActionthat provides a predefined list of possible values.static func values<C>(of: C.Type) -> CompletionActionCreates aCompletionActionthat provides a predefined list of possible values generated from aCaseIterabletype.
Default Implementations
Relationships
Conforms To
Swift.CopyableSwift.EscapableSwift.ExpressibleByDictionaryLiteralSwift.SendableSwift.SendableMetatype