Skip to content

Commit

Permalink
minor: update .completion
Browse files Browse the repository at this point in the history
  • Loading branch information
stonechoe committed Oct 8, 2024
1 parent 2f8ff91 commit 126f6ac
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .completion
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _esmeta_completions() {
local cur prev opts lastc informats outformats datafiles
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
cmdList="help extract compile build-cfg tycheck parse eval web test262-test inject mutate analyze ir-eval peval"
cmdList="help extract compile build-cfg tycheck parse eval web test262-test inject mutate analyze ir-eval peval pte"
globalOpt="-silent -error -status -time -test262dir"
helpOpt=""
extractOpt="-extract:target -extract:log -extract:eval -extract:repl"
Expand Down Expand Up @@ -92,7 +92,11 @@ _esmeta_completions() {
return 0
;;
peval)
COMPREPLY=($(compgen -W "${globalOpt} ${extractOpt} ${compileOpt} ${buildcfgOpt} ${pevalOpt}"))
COMPREPLY=($(compgen -W "${globalOpt} ${extractOpt} ${compileOpt} ${pevalOpt}"))
return 0
;;
pte)
COMPREPLY=($(compgen -W "${globalOpt} ${extractOpt} ${compileOpt} ${pevalOpt} ${buildcfgOpt} ${evalOpt}"))
return 0
;;
esac
Expand Down

0 comments on commit 126f6ac

Please sign in to comment.