Instance Propertyheckj.formic 0.3.0Formic
command
The command.
let command: any Command
The command.
let command: any Command
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct CommandExecutionResult
The result of executing a command.
protocol Command : Hashable, Identifiable, Sendable
A type that represents a command, run locally or remotely.
let host: RemoteHost
The host for the command.
let output: CommandOutput
The output from the command.
let duration: Duration
The duration of execution of the command.
let retries: Int
The number of retries needed for the command.
let exception: (any Error)?
The description of the exception thrown while invoking the command, if any.
init(command: any Command, host: RemoteHost, output: CommandOutput, duration: Duration, retries: Int, exception: (any Error)?)
Creates an annotated command execution result.
static func == (lhs: CommandExecutionResult, rhs: CommandExecutionResult) -> Bool
Returns true
if the two execution results are equal.
func consoleOutput(detailLevel: CommandOutputDetail) -> String
Returns a possibly multi-line string representation of the command execution result.
func hash(into hasher: inout Hasher)
Hashes the essential components of the execution result.
func representsFailure() -> Bool
Returns a Boolean value that indicates if the execution result represents a failure.