Skip to content

Commit

Permalink
vhs: added redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 18, 2025
1 parent 272ead6 commit ccae04b
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
nospace: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: nospace}}
doubleQuote: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: doubleQuote}}
singleQuote: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: singleQuote}}
redirect: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: redirect}}

doc:
needs:
Expand Down
2 changes: 1 addition & 1 deletion docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ enable = true

[output.linkcheck]
follow-web-links = true
exclude = [ 'gnu\.org']
exclude = [ 'gnu\.org', '\./redirect/out/.*\.gif']
1 change: 1 addition & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@
- [Nospace](./development/vhs/nospace.md)
- [Double Quote](./development/vhs/doubleQuote.md)
- [Single Quote](./development/vhs/singleQuote.md)
- [Redirect](./development/vhs/redirect.md)
18 changes: 18 additions & 0 deletions docs/src/development/vhs/redirect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Redirect

- bash
![](./redirect/out/redirect.bash.gif)
- elvish
![](./redirect/out/redirect.elvish.gif)
- fish
![](./redirect/out/redirect.fish.gif)
- nushell
![](./redirect/out/redirect.nushell.gif)
- oil
![](./redirect/out/redirect.oil.gif)
- powershell
![](./redirect/out/redirect.powershell.gif)
- xonsh
![](./redirect/out/redirect.xonsh.gif)
- zsh
![](./redirect/out/redirect.zsh.gif)
10 changes: 10 additions & 0 deletions docs/src/development/vhs/redirect/redirect.bash.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Source ../bash.tape

Output out/redirect.bash.gif
Output out/redirect.bash.ascii

Type "example >/dev/null " Sleep 1 Tab@1 2
Type "q" # exit `more`
Type "ac" Sleep 1 Tab@1

Sleep 2
9 changes: 9 additions & 0 deletions docs/src/development/vhs/redirect/redirect.elvish.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Source ../elvish.tape

Output out/redirect.elvish.gif
Output out/redirect.elvish.ascii

Type "example >/dev/null "
Sleep 1 Tab@1 Enter

Sleep 2
8 changes: 8 additions & 0 deletions docs/src/development/vhs/redirect/redirect.fish.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Source ../fish.tape

Output out/redirect.fish.gif
Output out/redirect.fish.ascii

Type "example >/dev/null " Sleep 1 Tab@1 3

Sleep 2
9 changes: 9 additions & 0 deletions docs/src/development/vhs/redirect/redirect.nushell.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Source ../nushell.tape

Output out/redirect.nushell.gif
Output out/redirect.nushell.ascii

Type "example >/dev/null "
Sleep 1 Tab@1 Enter

Sleep 2
9 changes: 9 additions & 0 deletions docs/src/development/vhs/redirect/redirect.oil.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Source ../oil.tape

Output out/redirect.oil.gif
Output out/redirect.oil.ascii

Type "example >/dev/null " Sleep 1 Tab@1 2
Type "ac" Sleep 1 Tab@1

Sleep 2
9 changes: 9 additions & 0 deletions docs/src/development/vhs/redirect/redirect.powershell.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Source ../powershell.tape

Output out/redirect.powershell.gif
Output out/redirect.powershell.ascii

Type "example >/dev/null " Sleep 1 Tab@1
Type "ac" Sleep 1 Tab@1

Sleep 2
9 changes: 9 additions & 0 deletions docs/src/development/vhs/redirect/redirect.xonsh.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Source ../xonsh.tape

Output out/redirect.xonsh.gif
Output out/redirect.xonsh.ascii

Type "example >/dev/null "
Sleep 1 Tab@1 2 Enter

Sleep 2
9 changes: 9 additions & 0 deletions docs/src/development/vhs/redirect/redirect.zsh.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Source ../zsh.tape

Output out/redirect.zsh.gif
Output out/redirect.zsh.ascii

Type "example >/dev/null "
Sleep 1 Tab@1 2 Enter

Sleep 2
4 changes: 2 additions & 2 deletions docs/src/development/vhs/word/out/word.xonsh.ascii
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@


────────────────────────────────────────────────────────────────────────────────
> example
> example >/dev/null






────────────────────────────────────────────────────────────────────────────────
> example
> example >/dev/null



Expand Down

0 comments on commit ccae04b

Please sign in to comment.