Required Static Propertyheckj.formic 0.3.0Formic
collectionInquiry
The shell command to use to get the state for this resource.
static var collectionInquiry: (any Command) { get }
The shell command to use to get the state for this resource.
static var collectionInquiry: (any Command) { get }
s6Formic18CollectionResourceP17collectionInquiryAA7Command_pvpZ
What are these?12W2W
import Formic
๐ Swift library to support IT Automation tasks. ๐ ๐
protocol CollectionResource : ParsedResource
A collection of resources that can be found and queried from a host.
protocol Command : Hashable, Identifiable, Sendable
A type that represents a command, run locally or remotely.
static func collectionParse(_ output: Data) throws -> [Self]
Returns a list of resources from the string output from a command.
static func namedInquiry(_ name: String) -> (any Command)
Returns an inquiry command that retrieves the output to parse into a resource.
static func queryCollection(from: RemoteHost, logger: Logger?) async throws -> ([Self], Date)
Returns a list of resources for the host you provide.