diff options
author | amine <hilalyamine@gmail.com> | 2019-10-25 16:42:48 +0200 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-11-03 17:21:27 +0100 |
commit | 614bc5a2c53409a8e9c85ab31a104428069aa7b3 (patch) | |
tree | ed0b7ff3ede31828510492c3266c351741033cf2 /misc | |
parent | 16bd116971bb7abc7308e95c474b433512672432 (diff) | |
download | git-bug-614bc5a2c53409a8e9c85ab31a104428069aa7b3.tar.gz |
commands: support bridge imports after a given date and resumable imports
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash_completion/git-bug | 7 | ||||
-rw-r--r-- | misc/powershell_completion/git-bug | 4 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 4 |
3 files changed, 14 insertions, 1 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index bbeb6335..2088fd4d 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -347,6 +347,13 @@ _git-bug_bridge_pull() flags_with_completion=() flags_completion=() + flags+=("--no-resume") + flags+=("-n") + local_nonpersistent_flags+=("--no-resume") + flags+=("--since=") + two_word_flags+=("--since") + two_word_flags+=("-s") + local_nonpersistent_flags+=("--since=") must_have_one_flag=() must_have_one_noun=() diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug index 9e0805f3..3a72cb26 100644 --- a/misc/powershell_completion/git-bug +++ b/misc/powershell_completion/git-bug @@ -71,6 +71,10 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { break } 'git-bug;bridge;pull' { + [CompletionResult]::new('-n', 'n', [CompletionResultType]::ParameterName, 'force importing all bugs') + [CompletionResult]::new('--no-resume', 'no-resume', [CompletionResultType]::ParameterName, 'force importing all bugs') + [CompletionResult]::new('-s', 's', [CompletionResultType]::ParameterName, 'import only bugs updated after the given date (must be a unix timestamp)') + [CompletionResult]::new('--since', 'since', [CompletionResultType]::ParameterName, 'import only bugs updated after the given date (must be a unix timestamp)') break } 'git-bug;bridge;push' { diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 8eaaf694..7bbd9001 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -151,7 +151,9 @@ function _git-bug_bridge_configure { } function _git-bug_bridge_pull { - _arguments + _arguments \ + '(-n --no-resume)'{-n,--no-resume}'[force importing all bugs]' \ + '(-s --since)'{-s,--since}'[import only bugs updated after the given date (must be a unix timestamp)]:' } function _git-bug_bridge_push { |