Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/vhs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
continue-on-error: true
container: ghcr.io/carapace-sh/vhs
env:
RC_BASH: "ln -sf /carapace/example/example /usr/local/bin/example"
RC_NUSHELL_ENV: "mkdir ~/.cache/\nexample _carapace nushell | save --force ~/.cache/example.nu"
RC_NUSHELL: "source ~/.cache/example.nu\n$$env.config.completions.external.completer = $$example_completer"
steps:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/vhs.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
RC_BASH="ln -sf /carapace/example/example /usr/local/bin/example"
RC_NUSHELL_ENV="mkdir ~/.cache/\nexample _carapace nushell | save --force ~/.cache/example.nu"
RC_NUSHELL="source ~/.cache/example.nu\n$$env.config.completions.external.completer = $$example_completer"

2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ services:
volumes:
- '.:/carapace/'
working_dir: /carapace/docs/src/development/vhs
command: bash --login -c "ls -d */ | xargs -I'{}' bash -c \"cd {};ls *.tape | xargs -n1 vhs\""
command: bash -c "ln -s /carapace/example/example /usr/local/bin/example && ls -d */ | xargs -I'{}' bash -c \"cd {};ls *.tape | xargs -n1 vhs\""
env_file:
- .github/workflows/vhs.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@


────────────────────────────────────────────────────────────────────────────────
> | example "ac"
NO RECORDS FOUND
> > example action






────────────────────────────────────────────────────────────────────────────────
> | example "ac"
NO RECORDS FOUND
> > example action




Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@


────────────────────────────────────────────────────────────────────────────────
> | example action embeddedP1 "embeddedP2 with
NO RECORDS FOUND
> > example action embeddedP1 "embeddedP2 with space"






────────────────────────────────────────────────────────────────────────────────
> | example action embeddedP1 "embeddedP2 with
NO RECORDS FOUND
> > example action embeddedP1 "embeddedP2 with space"




Expand Down
12 changes: 6 additions & 6 deletions docs/src/development/vhs/escape/out/escape.nushell.ascii
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@

────────────────────────────────────────────────────────────────────────────────
> | example action embeddedP1 embeddedP2\ with\
escape.bash.tape escape.elvish.tape escape.fish.tape
escape.nushell.tape escape.oil.tape escape.powershell.tape
escape.xonsh.tape escape.zsh.tape out/
NO RECORDS FOUND





────────────────────────────────────────────────────────────────────────────────
> | example action embeddedP1 embeddedP2\ with\
escape.bash.tape escape.elvish.tape escape.fish.tape
escape.nushell.tape escape.oil.tape escape.powershell.tape
escape.xonsh.tape escape.zsh.tape out/
NO RECORDS FOUND





Expand Down
4 changes: 2 additions & 2 deletions docs/src/development/vhs/nospace/out/nospace.nushell.ascii
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@


────────────────────────────────────────────────────────────────────────────────
> > example modifier --nospace out/
> > example modifier --nospace one,






────────────────────────────────────────────────────────────────────────────────
> > example modifier --nospace out/
> > example modifier --nospace one,



Expand Down
3 changes: 3 additions & 0 deletions docs/src/development/vhs/nushell.tape
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ Set Padding 0
Set Shell "nu"

Hide
Type@10ms "example _carapace nushell | save --force /tmp/example.nu" Enter
Type@10ms "source /tmp/example.nu" Enter
Type@10ms "$env.config.completions.external.completer = $example_completer" Enter
Type@10ms "clear" Enter
Show
14 changes: 7 additions & 7 deletions docs/src/development/vhs/redirect/out/redirect.nushell.ascii
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@

────────────────────────────────────────────────────────────────────────────────
> | example >/dev/null
out/ redirect.bash.tape
redirect.elvish.tape redirect.fish.tape
redirect.nushell.tape redirect.oil.tape
redirect.powershell.tape redirect.xonsh.tape
redirect.zsh.tape
NO RECORDS FOUND





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






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



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@


────────────────────────────────────────────────────────────────────────────────
> | example 'ac'
NO RECORDS FOUND
> > example action






────────────────────────────────────────────────────────────────────────────────
> | example 'ac'
NO RECORDS FOUND
> > example action




Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@


────────────────────────────────────────────────────────────────────────────────
> | example action embeddedP1 'embeddedP2 with
NO RECORDS FOUND
> > example action embeddedP1 "embeddedP2 with space"






────────────────────────────────────────────────────────────────────────────────
> | example action embeddedP1 'embeddedP2 with
NO RECORDS FOUND
> > example action embeddedP1 "embeddedP2 with space"




Expand Down
20 changes: 10 additions & 10 deletions docs/src/development/vhs/word/out/word.nushell.ascii
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@


────────────────────────────────────────────────────────────────────────────────
> > example
> > example _carapace nushell | save --force /tmp/example.nu






────────────────────────────────────────────────────────────────────────────────
> > example
> > example _carapace nushell | save --force /tmp/example.nu



Expand All @@ -23,22 +23,22 @@

────────────────────────────────────────────────────────────────────────────────
> | example
out/ word.bash.tape word.elvish.tape
word.fish.tape word.nushell.tape word.oil.tape
word.powershell.tape word.xonsh.tape word.zsh.tape



action action example
alias action example
chain shorthand chain
compat
completion Generate the autocompletion script for the specified shell
flag flag example
────────────────────────────────────────────────────────────────────────────────
> > example out/
> > example action






────────────────────────────────────────────────────────────────────────────────
> > example out/
> > example action



Expand Down
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
Loading