Skip to content

Commit

Permalink
completions: add --header-row option to excel
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jqnatividad committed Oct 8, 2024
1 parent 458f79a commit e8794d5
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completions/examples/qsv.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ _qsv() {
return 0
;;
qsv__excel)
opts="-h --sheet --metadata --error-format --flexible --trim --date-format --keep-zero-time --table --range --jobs --output --delimiter --quiet --help"
opts="-h --sheet --header-row --metadata --error-format --flexible --trim --date-format --keep-zero-time --table --range --jobs --output --delimiter --quiet --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.elv
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ set edit:completion:arg-completer[qsv] = {|@words|
}
&'qsv;excel'= {
cand --sheet 'sheet'
cand --header-row 'header-row'
cand --metadata 'metadata'
cand --error-format 'error-format'
cand --flexible 'flexible'
Expand Down
3 changes: 3 additions & 0 deletions contrib/completions/examples/qsv.fig.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@ const completion: Fig.Spec = {
{
name: "--sheet",
},
{
name: "--header-row",
},
{
name: "--metadata",
},
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.fish
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ complete -c qsv -n "__fish_qsv_using_subcommand enum" -l no-headers
complete -c qsv -n "__fish_qsv_using_subcommand enum" -l delimiter
complete -c qsv -n "__fish_qsv_using_subcommand enum" -s h -l help -d 'Print help'
complete -c qsv -n "__fish_qsv_using_subcommand excel" -l sheet
complete -c qsv -n "__fish_qsv_using_subcommand excel" -l header-row
complete -c qsv -n "__fish_qsv_using_subcommand excel" -l metadata
complete -c qsv -n "__fish_qsv_using_subcommand excel" -l error-format
complete -c qsv -n "__fish_qsv_using_subcommand excel" -l flexible
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.nu
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ module completions {

export extern "qsv excel" [
--sheet
--header-row
--metadata
--error-format
--flexible
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ Register-ArgumentCompleter -Native -CommandName 'qsv' -ScriptBlock {
}
'qsv;excel' {
[CompletionResult]::new('--sheet', 'sheet', [CompletionResultType]::ParameterName, 'sheet')
[CompletionResult]::new('--header-row', 'header-row', [CompletionResultType]::ParameterName, 'header-row')
[CompletionResult]::new('--metadata', 'metadata', [CompletionResultType]::ParameterName, 'metadata')
[CompletionResult]::new('--error-format', 'error-format', [CompletionResultType]::ParameterName, 'error-format')
[CompletionResult]::new('--flexible', 'flexible', [CompletionResultType]::ParameterName, 'flexible')
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/examples/qsv.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ _arguments "${_arguments_options[@]}" : \
(excel)
_arguments "${_arguments_options[@]}" : \
'--sheet[]' \
'--header-row[]' \
'--metadata[]' \
'--error-format[]' \
'--flexible[]' \
Expand Down
1 change: 1 addition & 0 deletions contrib/completions/src/cmd/excel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use clap::{arg, Command};
pub fn excel_cmd() -> Command {
Command::new("excel").args([
arg!(--sheet),
arg!(--"header-row"),
arg!(--metadata),
arg!(--"error-format"),
arg!(--flexible),
Expand Down

0 comments on commit e8794d5

Please sign in to comment.