Summary: | rc-config: make output easier to parse | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Patrick Lauer <patrick> |
Component: | eselect | Assignee: | Gentoo eselect Team <eselect> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | erkiferenc, ysottre |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Patrick Lauer
2015-08-18 12:08:37 UTC
>--column ?
--brief is used in other gentoo tools, like eselect
Looks like rc-config is only a symlink to eselect, so the --brief option is there for rc-config too. The difference between the two outputs seems to only be the lack of "Available init scripts" header in the brief version. Maybe it can be extended to also format the output in a bit more machine-friendly way. (In reply to Ferenc Erki from comment #2) > The difference between the two outputs seems to only be the lack of > "Available init scripts" header in the brief version. Maybe it can be > extended to also format the output in a bit more machine-friendly way. It could definitely be improved. There's another command: eselect --brief news list whose output needs parsing to be used in an external script. I've been working on adding unicode support to eselect, I'd be happy to help. rc-config is not part of OpenRC; fixing assignee. As was noted previously, use the --brief option to suppress unnecessary output. |