Skip to content

Commit 6970c82

Browse files
authored
patch to add --stdin in cli completions
- updated from 19cf27d
1 parent e08f52e commit 6970c82

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

completions/_quick-lint-js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ function _quick-lint-js() {
1717
'(- *)'--help'[Print help message]'
1818
'(- *)'--version'[Print version information]'
1919
'(--lsp-server)*:file:_files'
20-
'(--exit-fail-on --output-format *)'--lsp-server'[Run quick-lint-js in LSP server mode]'
20+
'(--stdin --exit-fail-on --output-format *)'--lsp-server'[Run quick-lint-js in LSP server mode]'
21+
'(--lsp-server)--stdin[Read standard input as a JavaScript file]'
2122
'(--lsp-server)--exit-fail-on=[Fail with a non-zero exit code if any of these errors are found (default\: "all")]'
2223
'(--lsp-server)--output-format=[Format to print feedback where FORMAT is one of\: gnu-like (default if omitted), vim-qflist-json]:format:->format'
2324
'--vim-file-bufnr=[Select a vim buffer for outputting feedback]')

completions/quick-lint-js.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _quick-lint-js () {
55
local cur opts
66
_init_completion -n = || return
77

8-
opts='--help --version --lsp-server --exit-fail-on= --output-format= --vim-file-bufnr='
8+
opts='--help --version --lsp-server --stdin --exit-fail-on= --output-format= --vim-file-bufnr='
99

1010
case $cur in
1111
--output-format=*)

completions/quick-lint-js.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
complete -c quick-lint-js -l help -d 'Print help message' -f
55
complete -c quick-lint-js -l version -d 'Print version information' -f
66
complete -c quick-lint-js -l lsp-server -d 'Run quick-lint-js in LSP server mode' -r
7+
complete -c quick-lint-js -l stdin -d 'Read standard input as a JavaScript file' -r
78
complete -c quick-lint-js -l exit-fail-on -d 'Fail with a non-zero exit code if any of these errors are found (default: "all")' -r
89
complete -c quick-lint-js -l output-format -d 'Format to print feedback where FORMAT is one of: gnu-like (default if omitted), vim-qflist-json' -xa 'gnu-like vim-qflist-json'
910
complete -c quick-lint-js -l vim-file-bufnr -d 'Select a vim buffer for outputting feedback' -r

0 commit comments

Comments
 (0)