#!intelli-shell
# [alias:mdb] Serve and open the book
mdbook serve docs --hostname 0.0.0.0 --open
# Create a new vhs tape
vhs new vhs/tapes/{{name:snake}}.tape
# Run an existing vhs tape
vhs vhs/tapes/{{name:snake}}.tape
# [alias:vhsg] Generate all GIFs from the tapes
vhs/generate_all_tapes.sh {{--merge-only}}
# [alias:isq] Executes an sql query to debug it
intelli-shell query {{debug/query.sql}}
# Check that the project builds with all feature combinations
cargo hack check --feature-powerset
# [alias:release] Create a new release
./release.sh {{patch|minor|major}}
## -- Completions --
$ (vhs) name: find vhs/tapes -type f -name "*.tape" -printf "%P\n" | sort | sed 's/\.tape$//'
$ (intelli-shell) debug/query.sql: find . -type f -name "*.sql" -printf "%P\n" | sort