Other Protocols
The following protocols are available globally.
-
A type that can handle print and read functions from command line prompt.
See moreDeclaration
Swift
public protocol PromptHandler
-
A type that can be initialized with a string argument. Any type that extends this can be used in
See moreCLI.ask(_:options:)
andCLI.choose(_:choices:)
functions.Declaration
Swift
public protocol ExpressibleByStringArgument
-
Type for builders that creates instances of
See moreProcess
for command execution.Declaration
Swift
public protocol ProcessBuilder