mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
chore: move example vhs tapes to a folder (#867)
This commit is contained in:
parent
7f42ec9713
commit
6e76729ce8
32 changed files with 6 additions and 6 deletions
|
@ -328,7 +328,7 @@ Links to images to make them easier to update in bulk. Use the following script
|
||||||
the examples to the images branch. (Requires push access to the branch).
|
the examples to the images branch. (Requires push access to the branch).
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
examples/generate.bash
|
examples/vhs/generate.bash
|
||||||
```
|
```
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
|
@ -25,12 +25,12 @@ set -o pipefail
|
||||||
# ensure that running each example doesn't have to wait for the build
|
# ensure that running each example doesn't have to wait for the build
|
||||||
cargo build --examples --features=crossterm,all-widgets
|
cargo build --examples --features=crossterm,all-widgets
|
||||||
|
|
||||||
for tape in examples/*.tape; do
|
for tape_path in examples/vhs/*.tape; do
|
||||||
gif=${tape/examples\//}
|
tape_file=${tape_path/examples\/vhs\//} # strip the examples/vhs/ prefix
|
||||||
gif=${gif/.tape/.gif}
|
gif_file=${tape_file/.tape/.gif} # replace the .tape suffix with .gif
|
||||||
~/go/bin/vhs $tape --quiet
|
~/go/bin/vhs $tape_path --quiet
|
||||||
# this can be pasted into the examples README.md
|
# this can be pasted into the examples README.md
|
||||||
echo "[${gif}]: https://github.com/ratatui-org/ratatui/blob/images/examples/${gif}?raw=true"
|
echo "[${gif_file}]: https://github.com/ratatui-org/ratatui/blob/images/examples/${gif_file}?raw=true"
|
||||||
done
|
done
|
||||||
git switch images
|
git switch images
|
||||||
git pull --rebase upstream images
|
git pull --rebase upstream images
|
Loading…
Reference in a new issue