Skip to content

Commit

Permalink
doc: improve treefmt.gif
Browse files Browse the repository at this point in the history
Add some whitespace to each file in the examples folder before applying to demonstrate formatting occurring.

Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed May 3, 2024
1 parent 4a6fbf9 commit ea6fe2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file modified docs/public/treefmt.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions docs/vhs/treefmt.tape
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ Set Height 220
Set Padding 20

Hide
Type "TEMP_DIR=$(mktemp -d) && rsync -av $PRJ_ROOT/test/examples/ $TEMP_DIR && cd $TEMP_DIR && clear"
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 -c"
Type "treefmt"
Sleep 1s
Enter

Expand All @@ -32,5 +34,5 @@ Enter
Sleep 5s

Hide
Type "cd && rm -rf $TEMP_DIR"
Type "popd && rm -rf $TEMP_DIR"
Enter

0 comments on commit ea6fe2d

Please sign in to comment.