aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-07-06 16:32:57 +0200
committerGitHub <noreply@github.com>2019-07-06 16:32:57 +0200
commitf4d4b2f41326d08fdfa574cd4732e950fa9532d8 (patch)
tree04cdd9508bf8c2fd1f3b928dd419a15cdb9709d0 /misc
parentaa4464dbba0b1e0ce39ae53e35971e6924d404d3 (diff)
parent9e611ee66787b9f005540395da2ea10b3320362c (diff)
downloadgit-bug-f4d4b2f41326d08fdfa574cd4732e950fa9532d8.tar.gz
Merge pull request #166 from MichaelMure/github-exporter
[Bridge] GitHub exporter
Diffstat (limited to 'misc')
-rw-r--r--misc/bash_completion/git-bug21
-rw-r--r--misc/powershell_completion/git-bug4
-rw-r--r--misc/zsh_completion/git-bug8
3 files changed, 33 insertions, 0 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index 741dcc49..ae3242e5 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -351,6 +351,26 @@ _git-bug_bridge_pull()
noun_aliases=()
}
+_git-bug_bridge_push()
+{
+ last_command="git-bug_bridge_push"
+
+ command_aliases=()
+
+ commands=()
+
+ flags=()
+ two_word_flags=()
+ local_nonpersistent_flags=()
+ flags_with_completion=()
+ flags_completion=()
+
+
+ must_have_one_flag=()
+ must_have_one_noun=()
+ noun_aliases=()
+}
+
_git-bug_bridge_rm()
{
last_command="git-bug_bridge_rm"
@@ -380,6 +400,7 @@ _git-bug_bridge()
commands=()
commands+=("configure")
commands+=("pull")
+ commands+=("push")
commands+=("rm")
flags=()
diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug
index 7eff1cda..b89897a3 100644
--- a/misc/powershell_completion/git-bug
+++ b/misc/powershell_completion/git-bug
@@ -50,6 +50,7 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock {
'git-bug;bridge' {
[CompletionResult]::new('configure', 'configure', [CompletionResultType]::ParameterValue, 'Configure a new bridge.')
[CompletionResult]::new('pull', 'pull', [CompletionResultType]::ParameterValue, 'Pull updates.')
+ [CompletionResult]::new('push', 'push', [CompletionResultType]::ParameterValue, 'Push updates.')
[CompletionResult]::new('rm', 'rm', [CompletionResultType]::ParameterValue, 'Delete a configured bridge.')
break
}
@@ -71,6 +72,9 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock {
'git-bug;bridge;pull' {
break
}
+ 'git-bug;bridge;push' {
+ break
+ }
'git-bug;bridge;rm' {
break
}
diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug
index ed676724..1e2ed511 100644
--- a/misc/zsh_completion/git-bug
+++ b/misc/zsh_completion/git-bug
@@ -116,6 +116,7 @@ function _git-bug_bridge {
commands=(
"configure:Configure a new bridge."
"pull:Pull updates."
+ "push:Push updates."
"rm:Delete a configured bridge."
)
_describe "command" commands
@@ -129,6 +130,9 @@ function _git-bug_bridge {
pull)
_git-bug_bridge_pull
;;
+ push)
+ _git-bug_bridge_push
+ ;;
rm)
_git-bug_bridge_rm
;;
@@ -149,6 +153,10 @@ function _git-bug_bridge_pull {
_arguments
}
+function _git-bug_bridge_push {
+ _arguments
+}
+
function _git-bug_bridge_rm {
_arguments
}