run(host:displayProgress:detailLevel:commands:)
Directly runs a series of commands against a single host.
@discardableResult func run(host: RemoteHost, displayProgress: Bool, detailLevel: CommandOutputDetail = .silent(emoji: true), commands: [(any Command)]) async throws -> [CommandExecutionResult]
Parameters
- host
The host on which to run the command.
- displayProgress
A Boolean value that indicates whether to display progress while the commands are executed.
- verbosity
The level of verbosity for reporting progress.
- commands
The commands to run.
Returns
A list of the results of the command executions.