PowerShell / PowerShell/DSC

--output-format should have a `json-array` option

Open
#802 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Enhancement
Dominant language
Rust
Stars
523
Forks
75
Avg merge
3d 16h
Merged PRs (30d)
24

Description

Summary of the new feature / enhancement

This is specific to dsc resource list and dsc extension list which returns JSONLines where each line is a JSON object. However, there's been some requests to have those commands emit a single JSON object that can be deserialized at once. To not break existing usage, we can add a as-json-array to the supported values. However, this option doesn't make sense for other cases like config and resource which returns a single JSON object.

Proposed technical implementation details (optional)

In the code, we'd have a separate enum for dsc resource/extension list with as-json-array

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the output-format handling for dsc resource list and dsc extension list, comparing their current JSONLines output with the supported values described in the issue. Confirm the chosen option emits one JSON array while existing formats remain unchanged, and that it is not accepted for commands that return a single JSON object.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.