Instance Propertyheckj.formic 0.3.0Formic
description
A textual representation of the command.
var description: String { get }
A textual representation of the command.
var description: String { get }
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct AnyCommand
A general command that is run against a host.
@frozen struct String
A Unicode string value that is a collection of characters.
init(name: String, ignoreFailure: Bool, retry: Backoff, executionTimeout: Duration, commandClosure: @escaping (RemoteHost, Logger?) async throws -> CommandOutput)
Invokes a command on the host to verify access.
let executionTimeout: Duration
The maximum duration to allow for the command.
let id: UUID
The ID of the command.
let ignoreFailure: Bool
A Boolean value that indicates whether a failing command should fail a playbook.
let retry: Backoff
The retry settings for the command.
static func == (lhs: AnyCommand, rhs: AnyCommand) -> Bool
Returns a Boolean value that indicates whether the two commands are equal.
func hash(into hasher: inout Hasher)
Combines elements of the command to generate a hash value.
@discardableResult func run(host: RemoteHost, logger: Logger?) async throws -> CommandOutput