SSHDConfig: move filepath from _metadata to _filepath property#5
Conversation
|
@copilot resolve the conflicts with main |
…nfig-filepath-property # Conflicts: # resources/sshdconfig/tests/sshdconfig.set.tests.ps1
Merged |
|
@copilot fix the clippy warnings/errors - look at the build script to see the exact clippy configuration |
The merge with |
|
@copilot revert the cargo.lock changes, close the PR, and open a PR with the same changes against the PowerShell/DSC fork |
filepathwas only configurable under the DSCmetadatablock, but since it directly affects resource behavior (which file to read/write), it belongs inproperties.Changes
canonical_properties.rs: ReplacedMetadatavariant withFilepath("_filepath")inputs.rs: RemovedMetadatastruct;filepath: Option<PathBuf>is now a direct field onCommandInforepeat_keyword.rs:RepeatInput/RepeatListInputuse_filepathfield instead of_metadatautil.rs:build_command_infoextracts_filepathfrom top-level JSON inputget.rs/set.rs: Updated allcmd_info.metadata.filepathreferences tocmd_info.filepath; output now includes_filepathdirectlysshd_config,sshd-subsystem,sshd-subsystemList): Schema updated —_metadataobject replaced with_filepathstring property_metadata = @{ filepath = ... }to_filepath = ...Before / After