aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-01-19 16:01:06 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:21 +0100
commit844616baf8dc628360942d57fd69f24e298e08da (patch)
tree3fd635e08a06de60618d47ab022554a1f78364de /misc
parentbdbe9e7e8256fff820efe1ce707e7154d517ecb3 (diff)
downloadgit-bug-844616baf8dc628360942d57fd69f24e298e08da.tar.gz
identity: more progress and fixes
Diffstat (limited to 'misc')
-rw-r--r--misc/bash_completion/git-bug21
-rw-r--r--misc/random_bugs/create_random_bugs.go2
-rw-r--r--misc/zsh_completion/git-bug2
3 files changed, 23 insertions, 2 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index 8551223d..98d94a35 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -450,6 +450,26 @@ _git-bug_deselect()
noun_aliases=()
}
+_git-bug_id()
+{
+ last_command="git-bug_id"
+
+ 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_label_add()
{
last_command="git-bug_label_add"
@@ -863,6 +883,7 @@ _git-bug_root_command()
commands+=("commands")
commands+=("comment")
commands+=("deselect")
+ commands+=("id")
commands+=("label")
commands+=("ls")
commands+=("ls-id")
diff --git a/misc/random_bugs/create_random_bugs.go b/misc/random_bugs/create_random_bugs.go
index f30a9d8a..085e89f0 100644
--- a/misc/random_bugs/create_random_bugs.go
+++ b/misc/random_bugs/create_random_bugs.go
@@ -138,7 +138,7 @@ func GenerateRandomOperationPacksWithSeed(packNumber int, opNumber int, seed int
}
func person() identity.Interface {
- return identity.NewBare(fake.FullName(), fake.EmailAddress())
+ return identity.NewIdentity(fake.FullName(), fake.EmailAddress())
}
var persons []identity.Interface
diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug
index a416ccef..d966b9be 100644
--- a/misc/zsh_completion/git-bug
+++ b/misc/zsh_completion/git-bug
@@ -8,7 +8,7 @@ case $state in
level1)
case $words[1] in
git-bug)
- _arguments '1: :(add bridge commands comment deselect label ls ls-label pull push select show status termui title version webui)'
+ _arguments '1: :(add bridge commands comment deselect id label ls ls-label pull push select show status termui title version webui)'
;;
*)
_arguments '*: :_files'