diff options
author | Michael Muré <batolettre@gmail.com> | 2019-02-24 14:45:24 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 22:48:51 +0100 |
commit | 304a3349300bba909b1f69e54c0d2d8a338994d1 (patch) | |
tree | 4b48eb550a9a71389bfaefc5b11c5ba5c5b6398a /misc | |
parent | 7a80d8f849861a6033cd0765e5d85a52b08a8854 (diff) | |
download | git-bug-304a3349300bba909b1f69e54c0d2d8a338994d1.tar.gz |
commands: add a "user adopt" command to use an existing identity
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash_completion/git-bug | 21 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 2 |
2 files changed, 22 insertions, 1 deletions
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' |