diff options
Diffstat (limited to 'tools/version')
| -rwxr-xr-x | tools/version | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/version b/tools/version new file mode 100755 index 0000000..cc7e679 --- /dev/null +++ b/tools/version @@ -0,0 +1,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' |
