aux-search/flake-info/examples/pull.sh

16 lines
401 B
Bash
Raw Normal View History

2021-08-17 08:55:08 +00:00
#! /usr/bin/env bash
# Run from cargo root as
# $ ./examples/pull.sh
echo "pulling examples in examples.txt"
examples=$(cat ./examples/examples.txt)
for flake in $examples; do
cargo run -- --flake "$flake" | jq > examples/"$(echo "$flake" | tr "/" "-")".json
done
echo "pulling excamples using json file"
cargo run -- --targets ./examples/examples.in.json | jq > examples/adaspark-offen.json