CompletionKind
The type of completion to use for an argument or option.
struct CompletionKind
The type of completion to use for an argument or option.
struct CompletionKind
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
Install shell completion scripts generated by your command-line tool.
Provide custom shell completions for your command-line tool’s arguments and options.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
static var `default`: CompletionKind { get }
Use the default completion kind for the value’s type.
static var directory: CompletionKind { get }
Complete directory names.
@preconcurrency static func custom(_ completion: @escaping ([String]) -> [String]) -> CompletionKind
Generate completions using the given closure.
static func file(extensions: [String] = []) -> CompletionKind
Complete file names.
static func list(_ words: [String]) -> CompletionKind
Use the specified list of completion strings.
static func shellCommand(_ command: String) -> CompletionKind
Call the given shell command to generate completions.