init(command:host:output:duration:retries:exception:)

Creates an annotated command execution result.

CommandExecutionResult.swift:24
init(command: any Command, host: RemoteHost, output: CommandOutput, duration: Duration, retries: Int, exception: (any Error)?)

Parameters

command

The command.

host

The host for the command.

output

The output from the command

duration

The duration of execution of the command.

retries

The number of retries needed for the command.

exception

The description of the exception thrown while invoking the command, if any.