Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

bohr-version.sh 272 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. IFS=$'\n\t'
  4. pip install jq===1.1.2 -qqq
  5. BOHR_VERSION=$(python -c "\
  6. import jq; \
  7. bohr_config = open(\"$(pwd)/bohr.json\").read(); \
  8. print(jq.compile('.bohr_framework_version').input(text=bohr_config).first())")
  9. echo "$BOHR_VERSION"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...