Skip to content

Commit 1539ce0

Browse files
authored
Merge pull request #1101 from carapace-sh/vhs-special
vhs: added special
2 parents 8bc0abe + dbcee3f commit 1539ce0

19 files changed

+477
-0
lines changed

.github/workflows/doc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
singleQuotePartial: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: singleQuotePartial}}
3939
escape: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: escape}}
4040
redirect: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: redirect}}
41+
special: {needs: build, uses: ./.github/workflows/vhs-template.yml, with: {topic: special}}
4142

4243
doc:
4344
needs:
@@ -51,6 +52,7 @@ jobs:
5152
- singleQuotePartial
5253
- escape
5354
- redirect
55+
- special
5456
runs-on: ubuntu-latest
5557
container: ghcr.io/carapace-sh/mdbook
5658
steps:

docs/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,4 @@
128128
- [Single Quote Partial](./development/vhs/singleQuotePartial.md)
129129
- [Escape](./development/vhs/escape.md)
130130
- [Redirect](./development/vhs/redirect.md)
131+
- [Special](./development/vhs/special.md)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Special
2+
3+
- bash
4+
![](./special/out/special.bash.gif)
5+
- elvish
6+
![](./special/out/special.elvish.gif)
7+
- fish
8+
![](./special/out/special.fish.gif)
9+
- nushell
10+
![](./special/out/special.nushell.gif)
11+
- oil
12+
![](./special/out/special.oil.gif)
13+
- powershell
14+
![](./special/out/special.powershell.gif)
15+
- xonsh
16+
![](./special/out/special.xonsh.gif)
17+
- zsh
18+
![](./special/out/special.zsh.gif)
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
>
2+
3+
4+
5+
6+
7+
8+
────────────────────────────────────────────────────────────────────────────────
9+
> example special p
10+
11+
12+
13+
14+
15+
16+
────────────────────────────────────────────────────────────────────────────────
17+
> example special p
18+
19+
20+
21+
22+
23+
24+
────────────────────────────────────────────────────────────────────────────────
25+
> example special "p1 & < > ' \" { } \$ # | ? ( ) ; [ ] * \\ \$() \${} \` \
26+
`\`"
27+
28+
29+
30+
31+
32+
────────────────────────────────────────────────────────────────────────────────
33+
> example special "p1 & < > ' \" { } \$ # | ? ( ) ; [ ] * \\ \$() \${} \` \
34+
`\`"
35+
ok
36+
>
37+
38+
39+
40+
────────────────────────────────────────────────────────────────────────────────
41+
> example special "p1 & < > ' \" { } \$ # | ? ( ) ; [ ] * \\ \$() \${} \` \
42+
`\`"
43+
ok
44+
>
45+
46+
47+
48+
────────────────────────────────────────────────────────────────────────────────
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
>
2+
3+
4+
5+
6+
7+
8+
────────────────────────────────────────────────────────────────────────────────
9+
> example special p
10+
11+
12+
13+
14+
15+
16+
────────────────────────────────────────────────────────────────────────────────
17+
> example special p
18+
19+
20+
21+
22+
23+
24+
────────────────────────────────────────────────────────────────────────────────
25+
> example special 'p1 & < > '' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
26+
COMPLETING argument
27+
p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
28+
29+
30+
31+
32+
────────────────────────────────────────────────────────────────────────────────
33+
> example special 'p1 & < > '' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
34+
35+
36+
37+
38+
39+
40+
────────────────────────────────────────────────────────────────────────────────
41+
> example special 'p1 & < > '' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
42+
43+
44+
45+
46+
47+
48+
────────────────────────────────────────────────────────────────────────────────
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
>
2+
3+
4+
5+
6+
7+
8+
────────────────────────────────────────────────────────────────────────────────
9+
> example special p
10+
11+
12+
13+
14+
15+
16+
────────────────────────────────────────────────────────────────────────────────
17+
> example special p
18+
19+
20+
21+
22+
23+
24+
────────────────────────────────────────────────────────────────────────────────
25+
> example special p1\ \&\ \<\ \>\ \'\ \"\ \{\ \}\ \$\ \#\ \|\ \?\ \(\ \)\ \;
26+
\ \ \[\ \]\ \*\ \\\ \$\(\)\ \$\{\}\ `\ ``
27+
28+
29+
30+
31+
32+
────────────────────────────────────────────────────────────────────────────────
33+
> example special p1\ \&\ \<\ \>\ \'\ \"\ \{\ \}\ \$\ \#\ \|\ \?\ \(\ \)\ \;
34+
\ \ \[\ \]\ \*\ \\\ \$\(\)\ \$\{\}\ `\ ``
35+
ok
36+
>
37+
38+
39+
40+
────────────────────────────────────────────────────────────────────────────────
41+
> example special p1\ \&\ \<\ \>\ \'\ \"\ \{\ \}\ \$\ \#\ \|\ \?\ \(\ \)\ \;
42+
\ \ \[\ \]\ \*\ \\\ \$\(\)\ \$\{\}\ `\ ``
43+
ok
44+
>
45+
46+
47+
48+
────────────────────────────────────────────────────────────────────────────────
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
> >
2+
3+
4+
5+
6+
7+
8+
────────────────────────────────────────────────────────────────────────────────
9+
> > example special p
10+
11+
12+
13+
14+
15+
16+
────────────────────────────────────────────────────────────────────────────────
17+
> > example special p
18+
19+
20+
21+
22+
23+
24+
────────────────────────────────────────────────────────────────────────────────
25+
> > example special "p1 & < > ' \" { } $ # | ? ( ) ; [ ] * \\ $() ${} ` ``"
26+
27+
28+
29+
30+
31+
32+
────────────────────────────────────────────────────────────────────────────────
33+
> > example special "p1 & < > ' \" { } $ # | ? ( ) ; [ ] * \\ $() ${} ` ``"
34+
35+
ok
36+
> >
37+
38+
39+
40+
────────────────────────────────────────────────────────────────────────────────
41+
> > example special "p1 & < > ' \" { } $ # | ? ( ) ; [ ] * \\ $() ${} ` ``"
42+
43+
ok
44+
> >
45+
46+
47+
48+
────────────────────────────────────────────────────────────────────────────────
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
>
2+
3+
4+
5+
6+
7+
8+
────────────────────────────────────────────────────────────────────────────────
9+
> example special p
10+
11+
12+
13+
14+
15+
16+
────────────────────────────────────────────────────────────────────────────────
17+
> example special p
18+
19+
20+
21+
22+
23+
24+
────────────────────────────────────────────────────────────────────────────────
25+
> example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
26+
27+
28+
29+
30+
31+
32+
────────────────────────────────────────────────────────────────────────────────
33+
> example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
34+
example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
35+
^
36+
[ interactive ]:3: Invalid token after redirect operator
37+
>
38+
39+
40+
────────────────────────────────────────────────────────────────────────────────
41+
> example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
42+
example special p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
43+
^
44+
[ interactive ]:3: Invalid token after redirect operator
45+
>
46+
47+
48+
────────────────────────────────────────────────────────────────────────────────
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
>
2+
3+
4+
5+
6+
7+
8+
────────────────────────────────────────────────────────────────────────────────
9+
> example special p
10+
11+
12+
13+
14+
15+
16+
────────────────────────────────────────────────────────────────────────────────
17+
> example special p
18+
19+
20+
21+
22+
23+
24+
────────────────────────────────────────────────────────────────────────────────
25+
> example special 'p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
26+
27+
28+
29+
30+
31+
32+
────────────────────────────────────────────────────────────────────────────────
33+
> example special 'p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
34+
>>
35+
36+
37+
38+
39+
40+
────────────────────────────────────────────────────────────────────────────────
41+
> example special 'p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
42+
>>
43+
44+
45+
46+
47+
48+
────────────────────────────────────────────────────────────────────────────────
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
>
2+
3+
4+
5+
6+
7+
8+
────────────────────────────────────────────────────────────────────────────────
9+
> example special p
10+
11+
12+
13+
14+
15+
16+
────────────────────────────────────────────────────────────────────────────────
17+
> example special p
18+
19+
20+
21+
22+
23+
24+
────────────────────────────────────────────────────────────────────────────────
25+
> example special r'p1 & < > \' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
26+
p1 & < > ' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``
27+
28+
29+
30+
31+
32+
────────────────────────────────────────────────────────────────────────────────
33+
> example special r'p1 & < > \' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
34+
35+
36+
37+
38+
39+
40+
────────────────────────────────────────────────────────────────────────────────
41+
> example special r'p1 & < > \' " { } $ # | ? ( ) ; [ ] * \ $() ${} ` ``'
42+
43+
44+
45+
46+
47+
48+
────────────────────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)