Structure
Which
A typed wrapper for the which command.
struct WhichTopics
Initializers
init(context: ShellContext)Creates a
whichcommand family bound to a shell context.
Instance Properties
let arguments: [String]Typed
whicharguments for the selected operation.let config: ToolConfigurationShared configuration applied to commands produced by this client.
var context: ShellContextThe shell context used when running this command family.
let stderrDestination: OutputDestinationThe stderr handling strategy for built commands.
let stdoutDestination: OutputDestinationThe stdout handling strategy for built commands.
Instance Methods
func command() -> CommandBuilds the raw
whichcommand.func settingStderrDestination(OutputDestination) -> WhichRedirects stderr for the built
whichcommand.func settingStdoutDestination(OutputDestination) -> WhichRedirects stdout for the built
whichcommand.func tool(String) -> WhichUses
which <tool>.func updatingConfiguration((ToolConfiguration) -> ToolConfiguration) -> WhichReturns a new value with updated shared tool configuration.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatypeSwiftyShell.OutputRedirectingCommandFamilySwiftyShell.RunnableCommandFamilySwiftyShell.ToolConfigurableCommandFamily