-
Notifications
You must be signed in to change notification settings - Fork 63
Long running mode for DSC #418
Copy link
Copy link
Open
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaNeed-ReviewSchema-ImpactChange requires updating a canonical schema for configs or manifestsChange requires updating a canonical schema for configs or manifests
Milestone
Metadata
Metadata
Assignees
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaNeed-ReviewSchema-ImpactChange requires updating a canonical schema for configs or manifestsChange requires updating a canonical schema for configs or manifests
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary of the new feature / enhancement
For integration into other products, it would make sense to have a
dsclong-running mode which can accept multiple operations and not exit the process.Proposed technical implementation details (optional)
Probably a
--server-modetype switch that hasdsc.exeaccept JSON commands to execute. Commands would be taken serially. Something of the form:{ "DSCRequest": { "id": "anything the client providers", "operation": "get", "configuration": { }, "configurationFile": "path", "traceLevel": "info", } }Where the properties would match many of the
dsccommand line arguments. An additional:{ "DSCResponse": { "id": "returns what the client provides", "status": "completed" } }This would indicate that the operation completed or had an error (like Request was invalid).
Can also have a specific command like:
{ "DSCRequest": { "operation": "exit" } }This would tell
dsc.exeto clean-up and exit.