From ccae04b0425af92f5c64aa9258248061559405a4 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sat, 18 Jan 2025 18:43:53 +0100 Subject: [PATCH] vhs: added redirect --- .github/workflows/doc.yml | 1 + docs/book.toml | 2 +- docs/src/SUMMARY.md | 1 + docs/src/development/vhs/redirect.md | 18 ++++++++++++++++++ .../vhs/redirect/redirect.bash.tape | 10 ++++++++++ .../vhs/redirect/redirect.elvish.tape | 9 +++++++++ .../vhs/redirect/redirect.fish.tape | 8 ++++++++ .../vhs/redirect/redirect.nushell.tape | 9 +++++++++ .../development/vhs/redirect/redirect.oil.tape | 9 +++++++++ .../vhs/redirect/redirect.powershell.tape | 9 +++++++++ .../vhs/redirect/redirect.xonsh.tape | 9 +++++++++ .../development/vhs/redirect/redirect.zsh.tape | 9 +++++++++ .../development/vhs/word/out/word.xonsh.ascii | 4 ++-- 13 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 docs/src/development/vhs/redirect.md create mode 100644 docs/src/development/vhs/redirect/redirect.bash.tape create mode 100644 docs/src/development/vhs/redirect/redirect.elvish.tape create mode 100644 docs/src/development/vhs/redirect/redirect.fish.tape create mode 100644 docs/src/development/vhs/redirect/redirect.nushell.tape create mode 100644 docs/src/development/vhs/redirect/redirect.oil.tape create mode 100644 docs/src/development/vhs/redirect/redirect.powershell.tape create mode 100644 docs/src/development/vhs/redirect/redirect.xonsh.tape create mode 100644 docs/src/development/vhs/redirect/redirect.zsh.tape diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 3a868521..5078dd71 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -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: diff --git a/docs/book.toml b/docs/book.toml index 5cdb57e9..23dd596c 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -19,4 +19,4 @@ enable = true [output.linkcheck] follow-web-links = true -exclude = [ 'gnu\.org'] +exclude = [ 'gnu\.org', '\./redirect/out/.*\.gif'] diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index a53183bb..965ba579 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -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) diff --git a/docs/src/development/vhs/redirect.md b/docs/src/development/vhs/redirect.md new file mode 100644 index 00000000..31f89ca5 --- /dev/null +++ b/docs/src/development/vhs/redirect.md @@ -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) diff --git a/docs/src/development/vhs/redirect/redirect.bash.tape b/docs/src/development/vhs/redirect/redirect.bash.tape new file mode 100644 index 00000000..4d76e2b6 --- /dev/null +++ b/docs/src/development/vhs/redirect/redirect.bash.tape @@ -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 diff --git a/docs/src/development/vhs/redirect/redirect.elvish.tape b/docs/src/development/vhs/redirect/redirect.elvish.tape new file mode 100644 index 00000000..fac9962f --- /dev/null +++ b/docs/src/development/vhs/redirect/redirect.elvish.tape @@ -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 diff --git a/docs/src/development/vhs/redirect/redirect.fish.tape b/docs/src/development/vhs/redirect/redirect.fish.tape new file mode 100644 index 00000000..32a1aecf --- /dev/null +++ b/docs/src/development/vhs/redirect/redirect.fish.tape @@ -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 diff --git a/docs/src/development/vhs/redirect/redirect.nushell.tape b/docs/src/development/vhs/redirect/redirect.nushell.tape new file mode 100644 index 00000000..014d9ce6 --- /dev/null +++ b/docs/src/development/vhs/redirect/redirect.nushell.tape @@ -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 diff --git a/docs/src/development/vhs/redirect/redirect.oil.tape b/docs/src/development/vhs/redirect/redirect.oil.tape new file mode 100644 index 00000000..d34a551b --- /dev/null +++ b/docs/src/development/vhs/redirect/redirect.oil.tape @@ -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 diff --git a/docs/src/development/vhs/redirect/redirect.powershell.tape b/docs/src/development/vhs/redirect/redirect.powershell.tape new file mode 100644 index 00000000..c4d3518a --- /dev/null +++ b/docs/src/development/vhs/redirect/redirect.powershell.tape @@ -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 diff --git a/docs/src/development/vhs/redirect/redirect.xonsh.tape b/docs/src/development/vhs/redirect/redirect.xonsh.tape new file mode 100644 index 00000000..d2770cfe --- /dev/null +++ b/docs/src/development/vhs/redirect/redirect.xonsh.tape @@ -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 diff --git a/docs/src/development/vhs/redirect/redirect.zsh.tape b/docs/src/development/vhs/redirect/redirect.zsh.tape new file mode 100644 index 00000000..e28ce513 --- /dev/null +++ b/docs/src/development/vhs/redirect/redirect.zsh.tape @@ -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 diff --git a/docs/src/development/vhs/word/out/word.xonsh.ascii b/docs/src/development/vhs/word/out/word.xonsh.ascii index 00982b24..9043ef6b 100644 --- a/docs/src/development/vhs/word/out/word.xonsh.ascii +++ b/docs/src/development/vhs/word/out/word.xonsh.ascii @@ -6,7 +6,7 @@ ──────────────────────────────────────────────────────────────────────────────── -> example +> example >/dev/null @@ -14,7 +14,7 @@ ──────────────────────────────────────────────────────────────────────────────── -> example +> example >/dev/null