mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
ea6fe2d5cb
Add some whitespace to each file in the examples folder before applying to demonstrate formatting occurring. Signed-off-by: Brian McGee <brian@bmcgee.ie>
38 lines
528 B
VHS
38 lines
528 B
VHS
Require rsync
|
|
Require treefmt
|
|
|
|
Set Shell zsh
|
|
Set FontSize 11
|
|
|
|
Set Theme "Catppuccin Mocha"
|
|
|
|
Set Width 320
|
|
Set Height 220
|
|
Set Padding 20
|
|
|
|
Hide
|
|
Type "TEMP_DIR=$(mktemp -d) && rsync -av $PRJ_ROOT/test/examples/ $TEMP_DIR && pushd $TEMP_DIR && clear"
|
|
Enter
|
|
Type "find . -type f -exec sh -c 'echo " " >> {}' \;"
|
|
Enter
|
|
Type "alias treefmt='treefmt --allow-missing-formatter' && clear"
|
|
Enter
|
|
Show
|
|
|
|
Type "treefmt"
|
|
Sleep 1s
|
|
Enter
|
|
|
|
Sleep 3s
|
|
Enter
|
|
Enter
|
|
Sleep 1s
|
|
|
|
Type "treefmt"
|
|
Enter
|
|
|
|
Sleep 5s
|
|
|
|
Hide
|
|
Type "popd && rm -rf $TEMP_DIR"
|
|
Enter |