-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
None
The new ego tool displays human friendly output. However, sometimes you may want to parse the answer programmatically.
For instance I may want to write a program that needs to know the selected arch profile. Parsing the output of `epro list arch` is quite inconvenient, and nothing guarantees that the output format won't change. Which forces to parse /etc/portage/make.profile/parent:
while read -r parentpro; do [[ $parentpro == *":funtoo/1.0/linux-gnu/arch/"* ]] && arch=${parentpro##*/arch/} && arch=${arch%%/*} done < /etc/portage/make.profile/parent echo $arch
I think it would be good if we could just do :
$ ego profile get arch x86-64bit $ ego profile get subarch amd64-bulldozer $ ego profile get mix-ins +X +audio -cinnamon +console-extras -dvd -gnome -hardened -kde ... +media -mediapro %mediadevice-audio-consumer ...
"+" meaning "manually set"
"-" meaning "not set"
"%" meaning "automatically set"