Functions
The following functions are available globally.
-
Convenience function for creating an extternal command. Does not run the command.
Declaration
Swift
public func cmd(_ command: String, arguments: [String], addEnv: [String : String] = [:]) -> Command
Parameters
command
The executable to run
arguments
The command line arguments to pass. No substitution is performed
-
Convenience function for creating an extternal command. Does not run the command.
Declaration
Swift
public func cmd(_ command: String, _ arguments: String..., addEnv: [String : String] = [:]) -> Command
Parameters
command
The executable to run
arguments
The command line arguments to pass. No substitution is performed