summaryrefslogtreecommitdiff
path: root/tools/version
blob: cc7e6790d0664618e7639e6607ef293b193fa8ab (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash -e

## tools/version
##
## Print the current version of the project to stdout. Data comes from Cargo.

cd "$(dirname "$0")/.."

cargo metadata \
	--format-version 1 |
jq -r '.packages[] | select(.name == "aws-autoscaling-dns") | .version'