Skip to content

Commit

Permalink
Merge pull request #1101 from carapace-sh/vhs-special
Browse files Browse the repository at this point in the history
vhs: added special
  • Loading branch information
rsteube authored Jan 20, 2025
2 parents 8bc0abe + dbcee3f commit 1539ce0
Show file tree
Hide file tree
Showing 19 changed files with 477 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
singleQuotePartial: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: singleQuotePartial}}
escape: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: escape}}
redirect: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: redirect}}
special: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: special}}

doc:
needs:
Expand All @@ -51,6 +52,7 @@ jobs:
- singleQuotePartial
- escape
- redirect
- special
runs-on: ubuntu-latest
container: ghcr.io/carapace-sh/mdbook
steps:
Expand Down
1 change: 1 addition & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@
- [Single Quote Partial](./development/vhs/singleQuotePartial.md)
- [Escape](./development/vhs/escape.md)
- [Redirect](./development/vhs/redirect.md)
- [Special](./development/vhs/special.md)
18 changes: 18 additions & 0 deletions docs/src/development/vhs/special.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Special

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






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special "p1 & < > ' \" { } \$ # | ? ( ) ; [ ] * \\ \$() \${} \` \
`\`"





────────────────────────────────────────────────────────────────────────────────
> example special "p1 & < > ' \" { } \$ # | ? ( ) ; [ ] * \\ \$() \${} \` \
`\`"
ok
>



────────────────────────────────────────────────────────────────────────────────
> example special "p1 & < > ' \" { } \$ # | ? ( ) ; [ ] * \\ \$() \${} \` \
`\`"
ok
>



────────────────────────────────────────────────────────────────────────────────
48 changes: 48 additions & 0 deletions docs/src/development/vhs/special/out/special.elvish.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
>






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special 'p1 & < > '' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
COMPLETING argument
p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``




────────────────────────────────────────────────────────────────────────────────
> example special 'p1 & < > '' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'






────────────────────────────────────────────────────────────────────────────────
> example special 'p1 & < > '' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'






────────────────────────────────────────────────────────────────────────────────
48 changes: 48 additions & 0 deletions docs/src/development/vhs/special/out/special.fish.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
>






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special p1\ \&\ \<\ \>\ \'\ \"\ \{\ \}\ \$\ \#\ \|\ \?\ \(\ \)\ \;
\ \ \[\ \]\ \*\ \\\ \$\(\)\ \$\{\}\ `\ ``





────────────────────────────────────────────────────────────────────────────────
> example special p1\ \&\ \<\ \>\ \'\ \"\ \{\ \}\ \$\ \#\ \|\ \?\ \(\ \)\ \;
\ \ \[\ \]\ \*\ \\\ \$\(\)\ \$\{\}\ `\ ``
ok
>



────────────────────────────────────────────────────────────────────────────────
> example special p1\ \&\ \<\ \>\ \'\ \"\ \{\ \}\ \$\ \#\ \|\ \?\ \(\ \)\ \;
\ \ \[\ \]\ \*\ \\\ \$\(\)\ \$\{\}\ `\ ``
ok
>



────────────────────────────────────────────────────────────────────────────────
48 changes: 48 additions & 0 deletions docs/src/development/vhs/special/out/special.nushell.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
> >






────────────────────────────────────────────────────────────────────────────────
> > example special p






────────────────────────────────────────────────────────────────────────────────
> > example special p






────────────────────────────────────────────────────────────────────────────────
> > example special "p1 & < > ' \" { } $ # | ? ( ) ; [ ] * \\ $() ${} ` ``"






────────────────────────────────────────────────────────────────────────────────
> > example special "p1 & < > ' \" { } $ # | ? ( ) ; [ ] * \\ $() ${} ` ``"

ok
> >



────────────────────────────────────────────────────────────────────────────────
> > example special "p1 & < > ' \" { } $ # | ? ( ) ; [ ] * \\ $() ${} ` ``"

ok
> >



────────────────────────────────────────────────────────────────────────────────
48 changes: 48 additions & 0 deletions docs/src/development/vhs/special/out/special.oil.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
>






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``






────────────────────────────────────────────────────────────────────────────────
> example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
^
[ interactive ]:3: Invalid token after redirect operator
>


────────────────────────────────────────────────────────────────────────────────
> example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
^
[ interactive ]:3: Invalid token after redirect operator
>


────────────────────────────────────────────────────────────────────────────────
48 changes: 48 additions & 0 deletions docs/src/development/vhs/special/out/special.powershell.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
>






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special 'p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'






────────────────────────────────────────────────────────────────────────────────
> example special 'p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
>>





────────────────────────────────────────────────────────────────────────────────
> example special 'p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
>>





────────────────────────────────────────────────────────────────────────────────
48 changes: 48 additions & 0 deletions docs/src/development/vhs/special/out/special.xonsh.ascii
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
>






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special p






────────────────────────────────────────────────────────────────────────────────
> example special r'p1 & < > \' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``





────────────────────────────────────────────────────────────────────────────────
> example special r'p1 & < > \' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'






────────────────────────────────────────────────────────────────────────────────
> example special r'p1 & < > \' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'






────────────────────────────────────────────────────────────────────────────────
Loading

0 comments on commit 1539ce0

Please sign in to comment.