Skip to content

Add JSON format to status subcommand#1655

Merged
jsoriano merged 2 commits intoelastic:mainfrom
jsoriano:status-json-format
Feb 5, 2024
Merged

Add JSON format to status subcommand#1655
jsoriano merged 2 commits intoelastic:mainfrom
jsoriano:status-json-format

Conversation

@jsoriano
Copy link
Copy Markdown
Member

@jsoriano jsoriano commented Feb 2, 2024

Add a --format json option to elastic-package status, that shows the same information but in JSON format.

See sample outputs in the test files.

Fixes #1519

@jsoriano jsoriano requested a review from a team February 2, 2024 12:58
@jsoriano jsoriano self-assigned this Feb 2, 2024
@@ -0,0 +1,20 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comparing with the testdata with the table format, in this test it is also shown there a section for pending changes:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one, added, thanks!

@elasticmachine
Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @jsoriano

Copy link
Copy Markdown
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jsoriano jsoriano merged commit a75fd6f into elastic:main Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support JSON format in elastic-package status

3 participants