Open alexherbo2 opened 3 years ago
cool idea, but I don't think sycli is meant to be a JSON -> ascii table tool
you could try using just jq
itself like this answer
Yep, I think also it is out of the scope of sycli
. Just wanted to throw the idea because I actually wanted to do some filtering and it is not as easy as filtering lines with sort
or grep
(if we want to keep the ASCII table).
true, ascii tables aren't very unix like anyway. to fit in better with standard unix tools like sort
/grep
then we should just output tabulated data like the output of ps
the change here would be pretty minimal: prettytable-rs has an undecorated format predefined
Yea I'm in favor here of allowing a raw output, as noted it should be a fairly simple change.
It may be nice if
sycli list
could build an ASCII table from a JSON list.Example – Sorting:
Example – Grepping: