Skip to content

projectListCmd: add --format flag#30

Open
teodoropiccinni wants to merge 14 commits intoArubacloud:mainfrom
teodoropiccinni:feat/output-format-json
Open

projectListCmd: add --format flag#30
teodoropiccinni wants to merge 14 commits intoArubacloud:mainfrom
teodoropiccinni:feat/output-format-json

Conversation

@teodoropiccinni
Copy link
Copy Markdown

CMD: acloud management project list

Description: In order to be able to integrate acloud CLI in my pipeline it is more comfortable to have the possibility to obtain results of my command in JSON format. I added the support to JSON format. If you are not declaring the --format flag it defaults to "table".

Changes: added flag --format
Usage:

acloud management project list --format json

Built and tested on MacOS:

go version go1.26.1 darwin/arm64

@aru-amedeo aru-amedeo self-assigned this Apr 8, 2026
@aru-amedeo aru-amedeo added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 8, 2026
@aru-amedeo
Copy link
Copy Markdown
Collaborator

Hi @teodoropiccinni, I think it's a great idea but maybe makes sense to have the export capability in all resources. Maybe designing a generic component to reuse in every cobra subcommand would make sense

@teodoropiccinni
Copy link
Copy Markdown
Author

Va bene, per ora avevo urgenza di quel comando. Nei prossimi giorni lo estendo.

@aru-amedeo
Copy link
Copy Markdown
Collaborator

aru-amedeo commented Apr 15, 2026

Hi @teodoropiccinni, could you rebase your branch onto main? PR #56 (tech debt) has just been pushed and needs to land first — it covers required flag validation, test coverage, pagination, output formatting, and several other fixes your feature will build on. Once the rebase is done we can move forward with your feature request. Let me know if you need any help with the rebase!

@teodoropiccinni
Copy link
Copy Markdown
Author

Sure, I'll do it soon.

Is it possible to hgain access to a sandbox/test env? I'm trying to test all commands but I need to create and destroy resources that will be invoiced to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants