aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-03-07 14:09:15 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-03-07 14:11:04 +0100
commit626ec9835b4450fb2994ec931357279700437b6b (patch)
tree983dbee41bacb6614e0fe5ffb6318dfc2754c7ae /misc
parent87bc42fb4695872b82cfa9a922d423df7ff21132 (diff)
downloadgit-bug-626ec9835b4450fb2994ec931357279700437b6b.tar.gz
webui: allow specifying the initial query
Example use-case: given a github URL in a source code comment or commit message, one can now run: git bug webui --query 'metadata:github-url:"https://github.com/author/myproject/issues/42"' on the commandline to look up the details of that issue on the web ui quickly, offline. Fixes <https://github.com/MichaelMure/git-bug/issues/592>.
Diffstat (limited to 'misc')
-rw-r--r--misc/bash_completion/git-bug4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug
index 8f2a0f8f..7c7cd975 100644
--- a/misc/bash_completion/git-bug
+++ b/misc/bash_completion/git-bug
@@ -1347,6 +1347,10 @@ _git-bug_webui()
local_nonpersistent_flags+=("-p")
flags+=("--read-only")
local_nonpersistent_flags+=("--read-only")
+ flags+=("--query=")
+ two_word_flags+=("--query")
+ local_nonpersistent_flags+=("--query")
+ local_nonpersistent_flags+=("--query=")
must_have_one_flag=()
must_have_one_noun=()