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 requested a review from a team as a code owner September 30, 2025 12:11
@backportbot backportbot bot requested review from Altahrim, CarlSchwan, artonge, come-nc, printminion-co and yemkareems and removed request for a team September 30, 2025 12:11
@backportbot backportbot bot added the 3. to review Waiting for reviews label Sep 30, 2025
@backportbot backportbot bot added this to the Nextcloud 32.0.1 milestone Sep 30, 2025
@AndyScherzinger AndyScherzinger merged commit 669c84c into stable32 Sep 30, 2025
207 of 211 checks passed
@AndyScherzinger AndyScherzinger deleted the backport/55260/stable32 branch September 30, 2025 21:50
@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.

4 participants