Classes
The following classes are available globally.
-
A flag is an argument, which when present, represents
true
. A flag that is not present, representsfalse
.Example:
See more-v
or--verbose
Declaration
Swift
@propertyWrapper public class CommandFlag : CommandFlagSpecification
-
An input argument is an argument that represents a file or similar. If it’s the last argument, it could optionally be variadic.
Example:
See moreaFile.txt
orfile1.txt file2.txt file3.txt
Declaration
Swift
@propertyWrapper public class CommandOptionalInput<Value> : CommandInputSpecification where Value : CommandArgumentValue
-
Undocumented
See moreDeclaration
Swift
@propertyWrapper public class CommandRequiredInput<Value> : CommandInputSpecification where Value : CommandArgumentValue
-
Undocumented
See moreDeclaration
Swift
@propertyWrapper public class CommandVariadicInput<Value> : CommandInputSpecification where Value : CommandArgumentValue
-
An option argument represents a named option and is used to pass a value to the command. It could have a default value, or could be omitted.
Example:
See more-p 8
or--passes 8
Declaration
Swift
@propertyWrapper public class CommandOption<Value> : CommandOptionSpecification where Value : CommandArgumentValue
-
Undocumented
See moreDeclaration
Swift
public final class CommandLineParser
-
Undocumented
See moreDeclaration
Swift
public final class CommandUsage
-
Undocumented
See moreDeclaration
Swift
public final class ExecutionMode
-
Undocumented
See moreDeclaration
Swift
public final class ExecutableFinder
-
Undocumented
Declaration
Swift
public final class BasicREPL : REPLImplementation
-
Undocumented
See moreDeclaration
Swift
public final class CommandLineHistory
-
Undocumented
See moreDeclaration
Swift
public final class ReadEvaluatePrintLoop
-
Undocumented
See moreDeclaration
Swift
public final class TerminalREPL : REPLImplementation
-
Undocumented
See moreDeclaration
Swift
public final class StandardInput : Input, WrapsFileHandle
-
Undocumented
See moreDeclaration
Swift
public class StandardBaseOutput : Output, WrapsFileHandle
-
Undocumented
Declaration
Swift
public final class StandardOutput : StandardBaseOutput
-
Undocumented
Declaration
Swift
public final class StandardError : StandardBaseOutput
-
Undocumented
See moreDeclaration
Swift
public final class TerminalInputMode
-
Undocumented
See moreDeclaration
Swift
public final class LineReader
-
Gets and sets environment variables for the current process.
See moreDeclaration
Swift
public class Environment
-
Undocumented
See moreDeclaration
Swift
public class Subprocess
-
Undocumented
See moreDeclaration
Swift
public class SubprocessResult
-
Undocumented
See moreDeclaration
Swift
public class SimpleWordCompletion : TextCompletion