Skip to content

[FEAT cloudctl] - Add --output flag (json/yaml) to all commands #52

Description

@onuryilmaz

[FEAT cloudctl] - Add --output flag (json/yaml) to all commands

Labels

  • feature
  • AI-ready
  • automation

Priority

(Medium) I'm annoyed but I'll live

User Story

As an AI agent or automation script, I can get the output of any command in JSON format, so that I can easily parse and act upon the information.

Description

Currently, many commands (like cluster-version) print plain text. Adding a global or per-command --output flag (supporting json, yaml, table) makes the CLI a first-class citizen for automation and AI tool-calling.

Acceptance Criteria

  • Implement --output (or -o) flag for cluster-version and sync.
  • Support json, yaml, and default text.
  • Ensure sync summary is available in JSON.
  • Use omitzero in JSON structs as per modern Go guidelines.

Reference Issues

None

Metadata

Metadata

Assignees

Labels

AI-readyOptimizations for AI agent tool-calling and machine-readable outputsautomationCapabilities that enhance the tool's use in CI/CD or scriptsbacklogReady for sprint planning; triggers project additionfeatureNew functional capabilities or significant additions to the CLI.

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions