diff options
author | Michael Muré <batolettre@gmail.com> | 2020-06-27 23:09:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 23:09:22 +0200 |
commit | c0dbc149d5c0c3610476ba14a800c9ba803a2c2c (patch) | |
tree | c07587da30eae7a37c2597d110ef1e66be3b4b8f /misc | |
parent | 23228101a2a38a139f6fc2cafc18e9f08d911089 (diff) | |
parent | 3aaf775857d186ad416133935e73ed1b063938c6 (diff) | |
download | git-bug-c0dbc149d5c0c3610476ba14a800c9ba803a2c2c.tar.gz |
Merge pull request #407 from lukegb/fix-402
Add support for read-only mode for web UI.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bash_completion/git-bug | 2 | ||||
-rw-r--r-- | misc/powershell_completion/git-bug | 1 | ||||
-rw-r--r-- | misc/zsh_completion/git-bug | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/misc/bash_completion/git-bug b/misc/bash_completion/git-bug index c3e62849..4152725f 100644 --- a/misc/bash_completion/git-bug +++ b/misc/bash_completion/git-bug @@ -1213,6 +1213,8 @@ _git-bug_webui() two_word_flags+=("--port") two_word_flags+=("-p") local_nonpersistent_flags+=("--port=") + flags+=("--read-only") + local_nonpersistent_flags+=("--read-only") must_have_one_flag=() must_have_one_noun=() diff --git a/misc/powershell_completion/git-bug b/misc/powershell_completion/git-bug index 0a8c7b5a..40831a11 100644 --- a/misc/powershell_completion/git-bug +++ b/misc/powershell_completion/git-bug @@ -240,6 +240,7 @@ Register-ArgumentCompleter -Native -CommandName 'git-bug' -ScriptBlock { [CompletionResult]::new('--no-open', 'no-open', [CompletionResultType]::ParameterName, 'Prevent the automatic opening of the web UI in the default browser') [CompletionResult]::new('-p', 'p', [CompletionResultType]::ParameterName, 'Port to listen to (default is random)') [CompletionResult]::new('--port', 'port', [CompletionResultType]::ParameterName, 'Port to listen to (default is random)') + [CompletionResult]::new('--read-only', 'read-only', [CompletionResultType]::ParameterName, 'Whether to run the web UI in read-only mode') break } }) diff --git a/misc/zsh_completion/git-bug b/misc/zsh_completion/git-bug index ba15f3bc..fbd52be5 100644 --- a/misc/zsh_completion/git-bug +++ b/misc/zsh_completion/git-bug @@ -459,6 +459,7 @@ function _git-bug_webui { _arguments \ '--open[Automatically open the web UI in the default browser]' \ '--no-open[Prevent the automatic opening of the web UI in the default browser]' \ - '(-p --port)'{-p,--port}'[Port to listen to (default is random)]:' + '(-p --port)'{-p,--port}'[Port to listen to (default is random)]:' \ + '--read-only[Whether to run the web UI in read-only mode]' } |