Add groups to autoinstall
Some checks failed
/ build-artifacts (autoinstall) (push) Has been cancelled
/ build-artifacts (autostart-manage) (push) Has been cancelled
/ upload-release (push) Has been cancelled

This commit is contained in:
Tobias Reisinger 2024-02-01 15:51:33 +01:00
parent ef3602167e
commit c5316e8318
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
name: autoinstall name: autoinstall
help: Install files, repository and else help: Install files, repository and else
version: 0.1.1 version: 0.1.2
flags: flags:
- long: --clean - long: --clean

View file

@ -5,11 +5,10 @@ clean=${args[--clean]:-}
_config_query() { _config_query() {
tomlq -c --arg group "$group" \ tomlq -c --arg group "$group" \
'.autoinstall | map(select(.group == $group)) | '"$1" \ '.autoinstall | map(select(.groups + ["all"] | contains([$group]))) | '"$1" \
"$XDG_CONFIG_HOME/autoinstall.toml" "$XDG_CONFIG_HOME/autoinstall.toml"
} }
#length=$(_config_query "length")
_config_query ".[]" | while read -r entry; do _config_query ".[]" | while read -r entry; do
install_args=() install_args=()

View file

@ -1,6 +1,6 @@
name: autostart-manage name: autostart-manage
help: Manage autostart help: Manage autostart
version: 0.1.1 version: 0.1.2
dependencies: dependencies:
tomlq: please install yq (https://github.com/kislyuk/yq) tomlq: please install yq (https://github.com/kislyuk/yq)