chocolatey / chocolatey/choco

JSON output for some commands

Open
#1,252 8 comments 8 reactions 0 assignees View on GitHub
0 - Backlog Enhancement Priority - Low Up For Grabs
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

It would be great for choco to return something other then text for any output. JSON would totally do as it can quickly be loaded with `Convert-FromJson`. This would help with automatic choco installation and configuration.

For example:

```powershell
choco info git.install --format json | Convert-FromJson | % Tags

choco feature --format json | Convert-FromJson | set features
$features.checksumFiles.Enabled -eq $true
```

Contributor guide

Open the contributing guide

Research direction

Start with the output paths for `choco info` and `choco feature`, then trace how each command currently produces text. Done means defining and implementing a consistent JSON output mode that can be consumed by PowerShell's `ConvertFrom-Json` for the examples in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.