nextcloud / nextcloud/circles

"occ circles:membership --output json ..." ignores output option and just shows plain output

Open
#1,592 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
JavaScript
Stars
177
Forks
68
Avg merge
2d 22h
Merged PRs (30d)
60

Description

It doesn't matter if you ask for json or json_pretty.

I use this command to perform some operations with bash scripting, and it would be nice and safer to be able to parse output with some json library instead of plain sed/awk commands.

Regards

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 by reproducing the issue with occ circles:membership --output json and --output json_pretty, then trace the circles:membership command entry point and its output handling. Done means both options produce valid JSON rather than the current plain output, suitable for parsing in a shell script.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli
Issue type
Bug
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.