From c3ff05f95bdfad6c2ea4cb899024fd47ac503b5f Mon Sep 17 00:00:00 2001 From: sudoforge Date: Sun, 25 Aug 2024 10:44:32 -0700 Subject: [PATCH] chore: regenerate command completion and documentation (#1253) Closes: #1209 Change-Id: Id19d5013b04ef5c99a99d367bbf3d618b8be068b --- doc/man/git-bug-bridge-new.1 | 24 +++++++++--------------- doc/man/git-bug-bug-deselect.1 | 9 ++------- doc/man/git-bug-bug-select.1 | 9 ++------- doc/man/git-bug-bug.1 | 9 ++------- doc/md/git-bug_bridge_new.md | 13 ++++++------- misc/completion/bash/git-bug | 2 +- misc/completion/fish/git-bug | 2 +- misc/completion/powershell/git-bug | 6 +++--- 8 files changed, 26 insertions(+), 48 deletions(-) diff --git a/doc/man/git-bug-bridge-new.1 b/doc/man/git-bug-bridge-new.1 index 73d01ada3760fb5585f94d9fe79796d645ea10d9..5911843e421b10b1dd4c7c78d3cc78b0c1a45449 100644 --- a/doc/man/git-bug-bridge-new.1 +++ b/doc/man/git-bug-bridge-new.1 @@ -67,10 +67,7 @@ Configure a new bridge by passing flags or/and using interactive terminal prompt .SH EXAMPLE -.PP -.RS - -.nf +.EX # Interactive example [1]: github [2]: gitlab @@ -81,8 +78,7 @@ target: 1 name [default]: default Detected projects: -[1]: github.com/a-hilaly/git-bug -[2]: github.com/git-bug/git-bug +[1]: github.com/git-bug/git-bug [0]: Another project @@ -108,9 +104,9 @@ Successfully configured bridge: default git bug bridge new \\ --name=default \\ --target=github \\ - --owner=$(OWNER) \\ - --project=$(PROJECT) \\ - --token=$(TOKEN) + --owner=example-owner + --project=example-repo \\ + --token=$TOKEN # For Launchpad git bug bridge new \\ @@ -121,12 +117,10 @@ git bug bridge new \\ # For Gitlab git bug bridge new \\ --name=default \\ - --target=github \\ - --url=https://gitlab.com/git-bug/git-bug \\ - --token=$(TOKEN) - -.fi -.RE + --target=gitlab \\ + --url=https://github.com/example-org/example-repo \\ + --token=$TOKEN +.EE .SH SEE ALSO diff --git a/doc/man/git-bug-bug-deselect.1 b/doc/man/git-bug-bug-deselect.1 index fd3422456835fc62c0f7b398fddd3175f5a91154..a648735e01aa6ac80f5bc4fc504084e4b5dbc6f3 100644 --- a/doc/man/git-bug-bug-deselect.1 +++ b/doc/man/git-bug-bug-deselect.1 @@ -23,18 +23,13 @@ Clear the implicitly selected bug .SH EXAMPLE -.PP -.RS - -.nf +.EX git bug select 2f15 git bug comment git bug status git bug deselect - -.fi -.RE +.EE .SH SEE ALSO diff --git a/doc/man/git-bug-bug-select.1 b/doc/man/git-bug-bug-select.1 index d73cd606982d35bbcf551e2c4454909eedf4b23b..397cb9e84c946e1154f682e58bc6bb54c4e0029c 100644 --- a/doc/man/git-bug-bug-select.1 +++ b/doc/man/git-bug-bug-select.1 @@ -32,17 +32,12 @@ The complementary command is "git bug deselect" performing the opposite operatio .SH EXAMPLE -.PP -.RS - -.nf +.EX git bug select 2f15 git bug comment git bug status - -.fi -.RE +.EE .SH SEE ALSO diff --git a/doc/man/git-bug-bug.1 b/doc/man/git-bug-bug.1 index db26518ead5b89c1120ca0cbd4ea14e43ca409c9..413d3ea4baec9af703ebb0ec19997f22e315ff42 100644 --- a/doc/man/git-bug-bug.1 +++ b/doc/man/git-bug-bug.1 @@ -70,10 +70,7 @@ You can pass an additional query to filter and order the list. This query can be .SH EXAMPLE -.PP -.RS - -.nf +.EX List open bugs sorted by last edition with a query: git bug status:open sort:edit-desc @@ -86,9 +83,7 @@ git bug "foo bar" baz Use queries, flags, and full text search: git bug status:open --by creation "foo bar" baz - -.fi -.RE +.EE .SH SEE ALSO diff --git a/doc/md/git-bug_bridge_new.md b/doc/md/git-bug_bridge_new.md index 46dcb900eeed690f20c2a8243de7068171208161..443ee385d4ba1cb4fa8cddd672194eebfc394b01 100644 --- a/doc/md/git-bug_bridge_new.md +++ b/doc/md/git-bug_bridge_new.md @@ -23,8 +23,7 @@ target: 1 name [default]: default Detected projects: -[1]: github.com/a-hilaly/git-bug -[2]: github.com/git-bug/git-bug +[1]: github.com/git-bug/git-bug [0]: Another project @@ -50,9 +49,9 @@ Successfully configured bridge: default git bug bridge new \ --name=default \ --target=github \ - --owner=$(OWNER) \ - --project=$(PROJECT) \ - --token=$(TOKEN) + --owner=example-owner + --project=example-repo \ + --token=$TOKEN # For Launchpad git bug bridge new \ @@ -64,8 +63,8 @@ git bug bridge new \ git bug bridge new \ --name=default \ --target=gitlab \ - --url=https://gitlab.com/git-bug/git-bug \ - --token=$(TOKEN) + --url=https://github.com/example-org/example-repo \ + --token=$TOKEN ``` ### Options diff --git a/misc/completion/bash/git-bug b/misc/completion/bash/git-bug index 4da6afba37bede4cd0d9f33b42d346f3b0f24cf6..42263e093a8e6cb538b922abfed3b8bbdb0bcfaf 100644 --- a/misc/completion/bash/git-bug +++ b/misc/completion/bash/git-bug @@ -21,7 +21,7 @@ __git-bug_get_completion_results() { local requestComp lastParam lastChar args # Prepare the command to request completions for the program. - # Calling ${words[0]} instead of directly git-bug allows to handle aliases + # Calling ${words[0]} instead of directly git-bug allows handling aliases args=("${words[@]:1}") requestComp="${words[0]} __complete ${args[*]}" diff --git a/misc/completion/fish/git-bug b/misc/completion/fish/git-bug index de8ee8da88c92631f54ebeb1cc8de4db67327e79..323c763fcdb0749d3e0a07d9de17f39e7956df58 100644 --- a/misc/completion/fish/git-bug +++ b/misc/completion/fish/git-bug @@ -79,7 +79,7 @@ function __git_bug_clear_perform_completion_once_result __git_bug_debug "" __git_bug_debug "========= clearing previously set __git_bug_perform_completion_once_result variable ==========" set --erase __git_bug_perform_completion_once_result - __git_bug_debug "Succesfully erased the variable __git_bug_perform_completion_once_result" + __git_bug_debug "Successfully erased the variable __git_bug_perform_completion_once_result" end function __git_bug_requires_order_preservation diff --git a/misc/completion/powershell/git-bug b/misc/completion/powershell/git-bug index 99d13e998bb4414f10802c0bb46722636cd3ec15..fb426dab5b472fc2fbb95e7dc46b947e359e53e1 100644 --- a/misc/completion/powershell/git-bug +++ b/misc/completion/powershell/git-bug @@ -10,7 +10,7 @@ filter __git-bug_escapeStringWithSpecialChars { $_ -replace '\s|#|@|\$|;|,|''|\{|\}|\(|\)|"|`|\||<|>|&','`$&' } -[scriptblock]$__git_bugCompleterBlock = { +[scriptblock]${__git_bugCompleterBlock} = { param( $WordToComplete, $CommandAst, @@ -85,7 +85,7 @@ filter __git-bug_escapeStringWithSpecialChars { __git-bug_debug "Calling $RequestComp" # First disable ActiveHelp which is not supported for Powershell - $env:GIT_BUG_ACTIVE_HELP=0 + ${env:GIT_BUG_ACTIVE_HELP}=0 #call the command store the output in $out and redirect stderr and stdout to null # $Out is an array contains each line per element @@ -242,4 +242,4 @@ filter __git-bug_escapeStringWithSpecialChars { } } -Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock $__git_bugCompleterBlock +Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock ${__git_bugCompleterBlock}