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 --json flag #373

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add --json flag #373

wants to merge 2 commits into from

Conversation

soar
Copy link

@soar soar commented May 29, 2022

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
Copy link
Author

soar commented May 17, 2024

@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