question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Add the option to output YAML

See original GitHub issue

Having a -y option to output YAML (which perhaps also worked with -c and -M for colour and -p for pretty printing) would be a nice option 😀 .

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kellyjonbrazilcommented, May 31, 2022

added in v1.20.0

1reaction
kellyjonbrazilcommented, May 21, 2022

I have this working now. Just need to add some tests. Should be ready for the next release.

$ jc -y date
---
year: 2022
month: May
month_num: 5
day: 20
weekday: Fri
weekday_num: 5
hour: 5
hour_24: 17
minute: 33
second: 29
period: PM
timezone: PDT
utc_offset:
day_of_year: 140
week_of_year: 20
iso: '2022-05-20T17:33:29'
epoch: 1653093209
epoch_utc:
timezone_aware: false

Also works with streaming parsers:

% ping 1.1.1.1 | jc --ping-s -y
---
type: reply
destination_ip: 1.1.1.1
sent_bytes: 56
pattern:
response_bytes: 64
response_ip: 1.1.1.1
icmp_seq: 0
ttl: 56
time_ms: 28.001
---
type: reply
destination_ip: 1.1.1.1
sent_bytes: 56
pattern:
response_bytes: 64
response_ip: 1.1.1.1
icmp_seq: 1
ttl: 56
time_ms: 23.838
---
type: reply
destination_ip: 1.1.1.1
sent_bytes: 56
pattern:
response_bytes: 64
response_ip: 1.1.1.1
icmp_seq: 2
ttl: 56
time_ms: 30.087

Colors work the same as JSON as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request: an option for YAML output · Issue #651 - GitHub
Hi! How is the development going? Since editor.swagger.io supports yaml, it would be really interesting to have springfox generate it, since we ...
Read more >
YAML Tutorial: Everything You Need to Get Started in Minutes
Here's a YAML tutorial to get you started quickly. ... Language to place more emphasis on its data-oriented features. ... The output is:...
Read more >
Customize pipeline configuration - GitLab Docs
To change the visibility of your pipelines and related features: On the top bar, select Main menu > Projects and find your project....
Read more >
Customize your pipeline - Azure Pipelines - Microsoft Learn
Open the YAML editor for your pipeline. · Add the following snippet to the end of your YAML file. · Select Save and...
Read more >
Command line options - AWS Documentation
In the AWS CLI, command line options are global parameters you can use to override the ... To send both the output and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found