-
-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples): add vhs tapes for constraint-explorer and minimal exa…
…mples (#1164)
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This is a vhs script. See https://github.com/charmbracelet/vhs for more info. | ||
# To run this script, install vhs and run `vhs ./examples/constraints.tape` | ||
Output "target/constraint-explorer.gif" | ||
Set Theme "Aardvark Blue" | ||
Set FontSize 18 | ||
Set Width 1200 | ||
Set Height 950 | ||
Hide | ||
Type "cargo run --example=constraint-explorer --features=crossterm" | ||
Enter | ||
Sleep 2s | ||
Show | ||
Set TypingSpeed 2s | ||
Type "1" | ||
Type "2" | ||
Right | ||
Type "4" | ||
Type "5" | ||
Up | ||
Up | ||
Down | ||
Down | ||
Right | ||
Set TypingSpeed 0.5s | ||
Type "++++++++" | ||
Type "--------" | ||
Type "aaa" | ||
Sleep 2s | ||
Type "xxx" | ||
Hide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This is a vhs script. See https://github.com/charmbracelet/vhs for more info. | ||
# To run this script, install vhs and run `vhs ./examples/hello_world.tape` | ||
Output "target/minimal.gif" | ||
Set Theme "Aardvark Blue" | ||
Set Width 1200 | ||
Set Height 200 | ||
Hide | ||
Type "cargo run --example=minimal --features=crossterm" | ||
Enter | ||
Sleep 1s | ||
Show | ||
Sleep 5s |