From 304a3349300bba909b1f69e54c0d2d8a338994d1 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 24 Feb 2019 14:45:24 +0100 Subject: commands: add a "user adopt" command to use an existing identity --- misc/bash_completion/git-bug | 21 +++++++++++++++++++++ misc/zsh_completion/git-bug | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index 237a0df0..c83d33ae 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -799,6 +799,26 @@ _git-bug_title() noun_aliases=() } +_git-bug_user_adopt() +{ + last_command="git-bug_user_adopt" + + 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_user_create() { last_command="git-bug_user_create" @@ -849,6 +869,7 @@ _git-bug_user() command_aliases=() commands=() + commands+=("adopt") commands+=("create") commands+=("ls") diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index 6fc3cf8e..232cd3c1 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -33,7 +33,7 @@ case $state in _arguments '2: :(edit)' ;; user) - _arguments '2: :(create ls)' + _arguments '2: :(adopt create ls)' ;; *) _arguments '*: :_files' -- cgit