aux-search/flake-info/examples/pull.sh
2021-08-17 10:55:08 +02:00

16 lines
401 B
Bash
Executable file

#! /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