Add groups to autoinstall
This commit is contained in:
parent
ef3602167e
commit
c5316e8318
3 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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=()
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue