Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

add --format option, including default json and new pretty #1851

Merged
merged 2 commits into from
Apr 15, 2021
Merged

Conversation

caass
Copy link
Contributor

@caass caass commented Apr 14, 2021

It may make sense to have this just be a --pretty flag, but if we decide we want to add more formats in the future (like forwarding raw devtools protocol stuff) then it's better to have the --format flag. Plus, we can introduce a warning like "the default is set to json but make sure to be explicit in case we change it"

Example of using --format pretty here:

pretty.mp4

it may make sense to have this just be a --pretty flag, but if we
decide we want to add more formats in the future (like forwarding
raw devtools protocol stuff) then it's better to have the --format
flag. Plus, we can introduce a warning like "the default is set to
json but make sure to be explicit in case we change it"
@caass caass requested a review from a team as a code owner April 14, 2021 17:39
@caass caass changed the title add --format option, including default json and new pretty add --format option, including default json and new pretty Apr 14, 2021
src/tail/log_server.rs Outdated Show resolved Hide resolved
@caass caass merged commit 3397116 into master Apr 15, 2021
@xortive xortive mentioned this pull request Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants