Skip to content

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

Enable exporting a configuration that specifies resources that only implement get. This change also makes the OSInfo resource only implement get (since export literally did the same operation). Added a new test resource to help validate the case where input is provided as a filter and where none is provided.

PR Context

Fix #428

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables exporting configurations for resources that only implement get when they don't implement export. The change removes the redundant export implementation from OSInfo resource and adds a new Test/Get resource to validate the fallback behavior.

  • Adds fallback logic to use get when export is not available
  • Removes redundant export implementation from OSInfo resource
  • Adds new Test/Get resource for testing get-only scenarios

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
dsc_lib/src/dscresources/command_resource.rs Implements fallback logic to use get when export is unavailable
osinfo/osinfo.dsc.resource.json Removes redundant export implementation
tools/dsctest/src/get.rs Adds new Get struct for test resource
tools/dsctest/src/main.rs Implements Get subcommand and schema handling
tools/dsctest/src/args.rs Adds Get command line arguments
tools/dsctest/dscget.dsc.resource.json Adds Test/Get resource manifest
dsc/tests/dsc_export.tests.ps1 Adds tests for export fallback scenarios

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Aug 14, 2025
Merged via the queue into PowerShell:main with commit 7d466d8 Aug 14, 2025
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the get-as-export branch August 14, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Synthetic export using get
2 participants