Structure
Plutil
A typed wrapper for macOS property list validation, conversion, extraction, and mutation.
struct PlutilOverview
Build one operation and execute it through SwiftyShell with run().
Topics
Initializers
init(context: ShellContext)Creates a
plutilcommand family bound to a shell context.
Instance Properties
let config: ToolConfigurationShared configuration applied to commands produced by this client.
var context: ShellContextThe shell context used when running this command family.
let stderrDestination: OutputDestinationThe stderr handling strategy for built commands.
let stdoutDestination: OutputDestinationThe stdout handling strategy for built commands.
Instance Methods
func append(PlutilValue, toArrayAt: String, in: String) -> PlutilAppends a typed value to the array at a key path.
func command() -> CommandBuilds the selected
plutilcommand.func convert(String, to: PlutilConversionFormat, output: PlutilConversionOutput, prettyPrinted: Bool) -> PlutilConverts a property list to another representation.
func extract(String, as: PlutilExtractionFormat, expectedType: PlutilValueType?, from: String) -> PlutilExtracts a value as a standalone property list, optionally asserting its type.
func extractRaw(String, expectedType: PlutilValueType?, from: String, omitTrailingNewline: Bool) -> PlutilExtracts the unencapsulated representation of a property list value.
func insert(PlutilValue, at: String, in: String) -> PlutilInserts a typed value at a key path that does not already exist.
func insertEmpty(PlutilEmptyCollection, at: String, in: String) -> PlutilInserts an empty array or dictionary at a key path that does not already exist.
func lint(String, additionalPlistPaths: [String]) -> PlutilChecks one or more property list files for syntax errors.
func remove(String, from: String) -> PlutilRemoves the value at a key path.
func replace(PlutilValue, at: String, in: String) -> PlutilReplaces an existing value at a key path.
func settingStderrDestination(OutputDestination) -> PlutilRedirects stderr for the built
plutilcommand.func settingStdoutDestination(OutputDestination) -> PlutilRedirects stdout for the built
plutilcommand.func updatingConfiguration((ToolConfiguration) -> ToolConfiguration) -> PlutilReturns a new value with updated shared tool configuration.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatypeSwiftyShell.OutputRedirectingCommandFamilySwiftyShell.RunnableCommandFamilySwiftyShell.ToolConfigurableCommandFamily