Luminarys / synapse

Synapse BitTorrent Daemon
https://synapse-bt.org
ISC License
855 stars 48 forks source link

sycli: Set the default output format to JSON when the output is not a terminal #205

Open alexherbo2 opened 3 years ago

alexherbo2 commented 3 years ago

It could be nice to have the default output format set to JSON when the output is redirected.

Example

sycli list | jq

Currently, --output can be set to json.

Luminarys commented 3 years ago

This is a good idea, thanks