summaryrefslogtreecommitdiff
path: root/tools/version
blob: 8e47a7c06967c24bff30ae6c9a64a2f39be3f38a (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 == "hi") | .version'