Skip to content

Commit

Permalink
feat(xq) adding xq as new tool (#958)
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 authored Dec 19, 2023
1 parent 6176ff9 commit 726f52d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions goss/goss-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ command:
vagrant:
exec: vagrant -v
exit-status: 0
xq:
exec: xq --version
exit-status: 0
stdout:
- 1.2.3
yq:
exec: yq --version
exit-status: 0
Expand Down
1 change: 1 addition & 0 deletions provisioning/tools-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ trivy_version: 0.47.0
updatecli_version: 0.69.0
vagrant_version: 2.4.0
windows_pwsh_version: 7.4.0
xq_version: 1.2.3
yq_version: 4.25.3
playwright_version: 1.40.1
8 changes: 8 additions & 0 deletions provisioning/ubuntu-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,13 @@ function install_ruby() {
install_asdf_package ruby "${RUBY_VERSION}"
}

## Install Xq
function install_xq() {
install_dir=/usr/local/bin
curl --fail --silent --location --show-error \
"https://github.com/sibprogrammer/xq/releases/download/v${XQ_VERSION}/xq_${XQ_VERSION}_linux_${ARCHITECTURE}.tar.gz" | tar --extract --gunzip --directory="${install_dir}"/ xq
}

## Install Yq with asdf
function install_yq() {
# Ensure that ASDF is installed
Expand Down Expand Up @@ -652,6 +659,7 @@ function main() {
install_gh
install_vagrant
install_ruby
install_xq
install_yq
install_packer
install_updatecli
Expand Down

0 comments on commit 726f52d

Please sign in to comment.