2 ms·
While it's noted that it's undocumented behavior (-o is non-existent in systemctl man page), so it might go away tomorrow, it's not a bad start. However what I
by bayindirh 2y ago
While it's noted that it's undocumented behavior (-o is non-existent in systemctl man page), so it might go away tomorrow, it's not a bad start. However what I want is more like
systemctl -o json list-units --type=service --state=active
I can add --terse for single line output to prevent adding jq to the pipe for processing that JSON.
Maybe instead of writing a bit better code and actually documenting these options, they can just absorb jq as jsonctl, who knows.
Sorry, I kinda get angry when I encounter shenanigans like undocumented functionality, or hostile-replacing a daemon because they felt like replacing something really working well for the last 20ish years, just for fun, you know.