Load enabled services from machine config

This commit is contained in:
Manuel Thalmann 2024-11-25 19:11:14 +01:00
parent e25c00cd39
commit 7248ec703a

View file

@ -16,7 +16,7 @@ begin
source "$dir/../../../lib/settings.fish" source "$dir/../../../lib/settings.fish"
set -la argv $args set -la argv $args
argparse -i "name=" "user=" -- $argv argparse -i "name=" "user=" -- $argv
set -l services (getProgramConfig --name "$_flag_name" --user "$_flag_user" --json | jq '.services') set -l services (getProgramConfig --name "$_flag_name" --json | jq '.services')
for service in (echo "$services" | jq '. | keys[]' --raw-output0 | string split0) for service in (echo "$services" | jq '. | keys[]' --raw-output0 | string split0)