Instance Propertyheckj.formic 0.3.0Formic
returnCode
The return code.
let returnCode: Int32
The return code.
let returnCode: Int32
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
struct CommandOutput
The structured output of a shell command.
@frozen struct Int32
A 32-bit signed integer value type.
let stdOut: Data?
The raw data from STDOUT, if any.
var stdoutString: String? { get }
The data from STDOUT reported as a UTF-8 string.
let stdErr: Data?
The raw data from STDERR, if any.
var stderrString: String? { get }
The data from STDERR reported as a UTF-8 string.
init(from decoder: any Decoder) throws
static var empty: CommandOutput { get }
A null output with no useful information.
static func exceptionFailure() -> CommandOutput
Creates a command out that represents an exception thrown failure, and has no output.
static func generalFailure(msg: String) -> CommandOutput
Creates a command out that represents a failure.
static func generalSuccess(msg: String) -> CommandOutput
Creates a command out that represents a success.