|
|
@ -27,6 +27,26 @@ go_deps() (
|
|
|
|
awk 'NR>'"${START_AT}"' && NR<'"${END_AT}"' {print $1}' "${GO_MOD}"
|
|
|
|
awk 'NR>'"${START_AT}"' && NR<'"${END_AT}"' {print $1}' "${GO_MOD}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#{{ if lookPath "gem" -}}
|
|
|
|
|
|
|
|
#{{ if lookPath "dasel" -}}
|
|
|
|
|
|
|
|
#{{ if lookPath "jq" -}}
|
|
|
|
|
|
|
|
gem_env () (
|
|
|
|
|
|
|
|
NAME=${1:-}
|
|
|
|
|
|
|
|
if [ "$NAME" != '' ]; then
|
|
|
|
|
|
|
|
gem environment \
|
|
|
|
|
|
|
|
| dasel --read yaml --write json \
|
|
|
|
|
|
|
|
| jq '.["RubyGems Environment"] | to_entries | map((.value | keys)[0] as $key | {key: $key, value: .value[$key] }) | from_entries' \
|
|
|
|
|
|
|
|
| jq --raw-output '.["'"${NAME}"'"]'
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
gem environment \
|
|
|
|
|
|
|
|
| dasel --read yaml --write json \
|
|
|
|
|
|
|
|
| jq '.["RubyGems Environment"] | to_entries | map((.value | keys)[0] as $key | {key: $key, value: .value[$key] }) | from_entries'
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
|
|
|
|
make_script() (
|
|
|
|
make_script() (
|
|
|
|
cat <<-EOF > "${1}"
|
|
|
|
cat <<-EOF > "${1}"
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|