From 614bc5a2c53409a8e9c85ab31a104428069aa7b3 Mon Sep 17 00:00:00 2001 From: amine Date: Fri, 25 Oct 2019 16:42:48 +0200 Subject: commands: support bridge imports after a given date and resumable imports --- misc/bash_completion/git-bug | 7 +++++++ misc/powershell_completion/git-bug | 4 ++++ misc/zsh_completion/git-bug | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'misc') 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 { -- cgit From 57e23c8ada0a9d921a6b68187a76eb5c8b8a407d Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 3 Nov 2019 16:46:51 +0100 Subject: bridge: improvement on the import resume feature --- misc/powershell_completion/git-bug | 4 ++-- misc/zsh_completion/git-bug | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'misc') diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug index 3a72cb26..34037531 100644 --- a/misc/powershell_completion/git-bug +++ b/misc/powershell_completion/git-bug @@ -73,8 +73,8 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { '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)') + [CompletionResult]::new('-s', 's', [CompletionResultType]::ParameterName, 'import only bugs updated after the given date (ex: "200h" or "june 2 2019")') + [CompletionResult]::new('--since', 'since', [CompletionResultType]::ParameterName, 'import only bugs updated after the given date (ex: "200h" or "june 2 2019")') break } 'git-bug;bridge;push' { diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 7bbd9001..9951bab9 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -153,7 +153,7 @@ function _git-bug_bridge_configure { function _git-bug_bridge_pull { _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)]:' + '(-s --since)'{-s,--since}'[import only bugs updated after the given date (ex: "200h" or "june 2 2019")]:' } function _git-bug_bridge_push { -- cgit