mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-03 05:25:32 +02:00
feat: Add function to list supported OS with all releases and editions
This commit is contained in:
parent
707a45d909
commit
b6e71f985a
32
quickget
32
quickget
|
@ -363,6 +363,38 @@ function list_csv() {
|
|||
exit 0
|
||||
}
|
||||
|
||||
list_supported() {
|
||||
# output OS RELEASE EDITION (usefull for straight testing...)
|
||||
local DL=""
|
||||
local FUNC
|
||||
local OPTION
|
||||
local OS
|
||||
|
||||
for OS in $(os_support); do
|
||||
case ${OS} in
|
||||
*ubuntu-server*) FUNC="ubuntu-server";;
|
||||
*ubuntu*) FUNC="ubuntu";;
|
||||
*) FUNC="${OS}";;
|
||||
esac
|
||||
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
|
||||
# If the OS has an editions_() function, use it.
|
||||
if [[ $(type -t "editions_${OS}") == function ]]; then
|
||||
for OPTION in $(editions_"${OS}"); do
|
||||
echo "${OS} ${RELEASE} ${OPTION}"
|
||||
done
|
||||
elif [[ "${OS}" == "windows"* ]]; then
|
||||
"languages_${OS}"
|
||||
for OPTION in "${LANGS[@]}"; do
|
||||
echo "${OS} ${RELEASE} ${OPTION}"
|
||||
done
|
||||
else
|
||||
echo "${OS} ${RELEASE}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
exit 0
|
||||
}
|
||||
|
||||
function os_support() {
|
||||
echo alma \
|
||||
alpine \
|
||||
|
|
Loading…
Reference in New Issue
Block a user