Skip to content

Commit b74a408

Browse files
committed
completion
1 parent 7ed6637 commit b74a408

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

completion/fish/task.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ complete -c $GO_TASK_PROGNAME -s c -l color -d 'colored outp
6969
complete -c $GO_TASK_PROGNAME -s C -l concurrency -d 'limit number of concurrent tasks'
7070
complete -c $GO_TASK_PROGNAME -l completion -d 'generate shell completion script' -xa "bash zsh fish powershell"
7171
complete -c $GO_TASK_PROGNAME -s d -l dir -d 'set directory of execution'
72+
complete -c $GO_TASK_PROGNAME -l disable-fuzzy -d 'disable fuzzy matching for task names'
7273
complete -c $GO_TASK_PROGNAME -s n -l dry -d 'compile and print tasks without executing'
7374
complete -c $GO_TASK_PROGNAME -s x -l exit-code -d 'pass-through exit code of task command'
7475
complete -c $GO_TASK_PROGNAME -l experiments -d 'list available experiments'

completion/ps/task.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Register-ArgumentCompleter -CommandName task -ScriptBlock {
1515
[CompletionResult]::new('--completion', '--completion', [CompletionResultType]::ParameterName, 'generate shell completion'),
1616
[CompletionResult]::new('-d', '-d', [CompletionResultType]::ParameterName, 'set directory'),
1717
[CompletionResult]::new('--dir', '--dir', [CompletionResultType]::ParameterName, 'set directory'),
18+
[CompletionResult]::new('--disable-fuzzy', '--disable-fuzzy', [CompletionResultType]::ParameterName, 'disable fuzzy matching'),
1819
[CompletionResult]::new('-n', '-n', [CompletionResultType]::ParameterName, 'dry run'),
1920
[CompletionResult]::new('--dry', '--dry', [CompletionResultType]::ParameterName, 'dry run'),
2021
[CompletionResult]::new('-x', '-x', [CompletionResultType]::ParameterName, 'pass-through exit code'),

completion/zsh/_task

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ _task() {
5151
'(-c --color)'{-c,--color}'[colored output]'
5252
'(--completion)--completion[generate shell completion script]:shell:(bash zsh fish powershell)'
5353
'(-d --dir)'{-d,--dir}'[dir to run in]:execution dir:_dirs'
54+
'(--disable-fuzzy)--disable-fuzzy[disable fuzzy matching for task names]'
5455
'(-n --dry)'{-n,--dry}'[compiles and prints tasks without executing]'
5556
'(--dry)--dry[dry-run mode, compile and print tasks only]'
5657
'(-x --exit-code)'{-x,--exit-code}'[pass-through exit code of task command]'

0 commit comments

Comments
 (0)