Cmdlet
Close-OfficeYaml
Completes a live YAML document's lifetime without saving.
Syntax
Close-OfficeYaml
-Document <YamlDocument>
[<CommonParameters>]#Parameter set:
DocumentExamples
Discard pending changes.
Close-OfficeYaml -Document $documentRead a value and release the document.
$document = Open-OfficeYaml -Path ./values.yaml
(Get-OfficeYamlNode -Document $document -Select 'image.tag').Value
Close-OfficeYaml -Document $documentParameters
- -Document YamlDocument
- YAML document to close.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.