CompletionShell
A shell for which the parser can generate a completion script.
struct CompletionShell
A shell for which the parser can generate a completion script.
struct CompletionShell
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
static func completionScript(for shell: CompletionShell) -> String
Returns a shell completion script for the specified shell.
protocol CaseIterable
A type that provides a collection of all of its values.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
init?(rawValue: String)
Creates a new instance from the given string.
static var allCases: [CompletionShell] { get }
An array of all supported shells for completion scripts.
static var bash: CompletionShell { get }
An instance representing bash
.
static var fish: CompletionShell { get }
An instance representing fish
.
static var zsh: CompletionShell { get }
An instance representing zsh
.
static func autodetected() -> CompletionShell?
Returns an instance representing the current shell, if recognized.
var rawValue: String
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)