Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add machine-friendly output for commands #408

Open
spyrkob opened this issue Jun 2, 2023 · 0 comments
Open

Add machine-friendly output for commands #408

spyrkob opened this issue Jun 2, 2023 · 0 comments
Labels
grooming-needed The issue is not ready for implementation. Some details of implementation need to be specified.

Comments

@spyrkob
Copy link
Collaborator

spyrkob commented Jun 2, 2023

Add --plain or --json flag to the commands.

When the flag is used, the output should be minimal (e.g. no progress updates) and easy to parse in scripts, etc.

For instance the output of calling prospero install --json --profile wildfly --dir wfly would be:

{
"status": "OK",
"operation": "install"
}

or in case of an error:

{
"status": "ERROR",
"operation": "install",
"error_code": "PR01234"
"msg": "Description of the error"
}

[TODO] define the format of messages for all commands

@spyrkob spyrkob added the grooming-needed The issue is not ready for implementation. Some details of implementation need to be specified. label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grooming-needed The issue is not ready for implementation. Some details of implementation need to be specified.
Projects
None yet
Development

No branches or pull requests

1 participant