Skip to content

Add --json flag - #373

Open
soar wants to merge 2 commits into
jorgebastida:masterfrom
soar:feature/pretty-json
Open

Add --json flag#373
soar wants to merge 2 commits into
jorgebastida:masterfrom
soar:feature/pretty-json

Conversation

@soar

@soar soar commented May 29, 2022

Copy link
Copy Markdown

This flag adds an ability to print JSON lines as formatted (and, optionally, highlighted) text. Supports --query and --color options.

Before:

awslogs get RDSOSMetrics instance-id --query '{engine: engine, uptime: uptime, processList: processList}'

Screenshot Before

After:

awslogs get RDSOSMetrics instance-id --query '{engine: engine, uptime: uptime, processList: processList}' --json

Screenshot After

Updated to match the new code style. Conflicts fixed.
The old version is still available in the fork here: https://github.com/soar/awslogs/tree/feature/pretty-json-legacy

to print JSON lines as formatted (and, optionally, highlighted) text
@soar
soar marked this pull request as ready for review May 29, 2022 20:46
@soar soar mentioned this pull request May 29, 2022
# Conflicts:
#	awslogs/core.py
#	setup.py
@soar

soar commented May 17, 2024

Copy link
Copy Markdown
Author

@jorgebastida Hello! I see activity in the repo, so I updated the branch. Review this, please.

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.

1 participant