Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Sep 30, 2025

Backport of PR #55260

prepare to add json output

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
… methods

- Extract collectDelegationData() method to eliminate code duplication
- Add formatSettingsData() method for consistent data formatting
- Add outputPlainFormat() method to separate concerns
- Add proper empty state handling with user-friendly message

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
- Add --output option supporting plain, json, and json_pretty formats
- Add validateOutputFormat() method for input validation
- Implement proper error handling for invalid output formats
- Support empty state handling for both plain and JSON outputs
- Use Base class writeArrayInOutputFormat() for consistent JSON output
- Maintain backward compatibility with plain format as default

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
@backportbot backportbot bot added the 3. to review Waiting for reviews label Sep 30, 2025
@backportbot backportbot bot added this to the Nextcloud 31.0.10 milestone Sep 30, 2025
@AndyScherzinger AndyScherzinger merged commit 467c079 into stable31 Oct 2, 2025
211 of 221 checks passed
@AndyScherzinger AndyScherzinger deleted the backport/55260/stable31 branch October 2, 2025 07:49
printminion-co added a commit to IONOS-Productivity/ncw-server that referenced this pull request Oct 2, 2025
…le31

[stable31] admin-delegation occ - add output option for show command to support JSON formats

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
@blizzz blizzz mentioned this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants