Skip to content

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

Pull the functionality out of the dsctest resource into a separate Microsoft.DSC.Debug/Echo resource

PR Context

Fix #537

@SteveL-MSFT SteveL-MSFT added Doc-Impact Schema-Impact Change requires updating a canonical schema for configs or manifests labels Sep 18, 2024
#[derive(Debug, Parser)]
#[clap(name = "dscecho", version = "1.0.0", about = "Debugging helper resource that echos the input.", long_about = None)]
pub struct Args {
#[clap(short, long, help = "The input to the echo command as JSON. If no input is provided the JSON schema for the input is returned.")]

Choose a reason for hiding this comment

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

For a generic 'echo functionality' I don't think we should limit the input to be a JSON. It probably should be any string.

Copy link
Member Author

Choose a reason for hiding this comment

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

What is echo'd doesn't have to be JSON, but the input has to be a valid JSON object that matches the resource schema

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Sep 20, 2024
Merged via the queue into PowerShell:main with commit 2539e64 Sep 20, 2024
5 checks passed
@SteveL-MSFT SteveL-MSFT deleted the echo branch September 20, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Doc-Impact Schema-Impact Change requires updating a canonical schema for configs or manifests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish echo resource as Microsoft.DSC.Debug/Echo

2 participants