PowerShell / DSC

This repo is for the DSC v3 project
MIT License
142 stars 22 forks source link

When using `-d` to pass in the config #297

Closed SteveL-MSFT closed 3 months ago

SteveL-MSFT commented 6 months ago

Summary of the new feature / enhancement

-i is intended for JSON content while -p is the path to a JSON file. Users may mix this up, so when using -i, if it's not valid JSON, we should check if it's a valid filepath and if so, inform in the error message it looks like a filepath and they should use -p instead. Similarly, if -p doesn't find the file, see if the input is JSON and give better error message.

Proposed technical implementation details (optional)

No response

SteveL-MSFT commented 3 months ago

Parameter was changed to -d but the scenario still exists