File tree Expand file tree Collapse file tree 8 files changed +26
-48
lines changed Expand file tree Collapse file tree 8 files changed +26
-48
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,7 @@ Configure a new bridge by passing flags or/and using interactive terminal prompt
67
67
68
68
69
69
.SH EXAMPLE
70
- .PP
71
- .RS
72
-
73
- .nf
70
+ .EX
74
71
# Interactive example
75
72
[1]: github
76
73
[2]: gitlab
@@ -81,8 +78,7 @@ target: 1
81
78
name [default]: default
82
79
83
80
Detected projects:
84
- [1]: github.com/a-hilaly/git-bug
85
- [2]: github.com/git-bug/git-bug
81
+ [1]: github.com/git-bug/git-bug
86
82
87
83
[0]: Another project
88
84
@@ -108,9 +104,9 @@ Successfully configured bridge: default
108
104
git bug bridge new \\
109
105
--name=default \\
110
106
--target=github \\
111
- --owner=$(OWNER) \\
112
- --project=$(PROJECT) \\
113
- --token=$( TOKEN)
107
+ --owner=example-owner
108
+ --project=example-repo \\
109
+ --token=$TOKEN
114
110
115
111
# For Launchpad
116
112
git bug bridge new \\
@@ -121,12 +117,10 @@ git bug bridge new \\
121
117
# For Gitlab
122
118
git bug bridge new \\
123
119
--name=default \\
124
- --target=github \\
125
- --url=https://gitlab.com/git-bug/git-bug \\
126
- --token=$(TOKEN)
127
-
128
- .fi
129
- .RE
120
+ --target=gitlab \\
121
+ --url=https://github.com/example-org/example-repo \\
122
+ --token=$TOKEN
123
+ .EE
130
124
131
125
132
126
.SH SEE ALSO
Original file line number Diff line number Diff line change @@ -23,18 +23,13 @@ Clear the implicitly selected bug
23
23
24
24
25
25
.SH EXAMPLE
26
- .PP
27
- .RS
28
-
29
- .nf
26
+ .EX
30
27
git bug select 2f15
31
28
git bug comment
32
29
git bug status
33
30
git bug deselect
34
31
35
-
36
- .fi
37
- .RE
32
+ .EE
38
33
39
34
40
35
.SH SEE ALSO
Original file line number Diff line number Diff line change @@ -32,17 +32,12 @@ The complementary command is "git bug deselect" performing the opposite operatio
32
32
33
33
34
34
.SH EXAMPLE
35
- .PP
36
- .RS
37
-
38
- .nf
35
+ .EX
39
36
git bug select 2f15
40
37
git bug comment
41
38
git bug status
42
39
43
-
44
- .fi
45
- .RE
40
+ .EE
46
41
47
42
48
43
.SH SEE ALSO
Original file line number Diff line number Diff line change @@ -70,10 +70,7 @@ You can pass an additional query to filter and order the list. This query can be
70
70
71
71
72
72
.SH EXAMPLE
73
- .PP
74
- .RS
75
-
76
- .nf
73
+ .EX
77
74
List open bugs sorted by last edition with a query:
78
75
git bug status:open sort:edit-desc
79
76
@@ -86,9 +83,7 @@ git bug "foo bar" baz
86
83
Use queries, flags, and full text search:
87
84
git bug status:open --by creation "foo bar" baz
88
85
89
-
90
- .fi
91
- .RE
86
+ .EE
92
87
93
88
94
89
.SH SEE ALSO
Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ target: 1
23
23
name [default]: default
24
24
25
25
Detected projects:
26
- [1]: github.com/a-hilaly/git-bug
27
- [2]: github.com/git-bug/git-bug
26
+ [1]: github.com/git-bug/git-bug
28
27
29
28
[0]: Another project
30
29
@@ -50,9 +49,9 @@ Successfully configured bridge: default
50
49
git bug bridge new \
51
50
--name=default \
52
51
--target=github \
53
- --owner=$(OWNER) \
54
- --project=$(PROJECT) \
55
- --token=$( TOKEN)
52
+ --owner=example-owner
53
+ --project=example-repo \
54
+ --token=$TOKEN
56
55
57
56
# For Launchpad
58
57
git bug bridge new \
@@ -64,8 +63,8 @@ git bug bridge new \
64
63
git bug bridge new \
65
64
--name=default \
66
65
--target=gitlab \
67
- --url=https://gitlab .com/git-bug/git-bug \
68
- --token=$( TOKEN)
66
+ --url=https://github .com/example-org/example-repo \
67
+ --token=$TOKEN
69
68
```
70
69
71
70
### Options
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ __git-bug_get_completion_results() {
21
21
local requestComp lastParam lastChar args
22
22
23
23
# Prepare the command to request completions for the program.
24
- # Calling ${words[0]} instead of directly git-bug allows to handle aliases
24
+ # Calling ${words[0]} instead of directly git-bug allows handling aliases
25
25
args=(" ${words[@]: 1} " )
26
26
requestComp=" ${words[0]} __complete ${args[*]} "
27
27
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ function __git_bug_clear_perform_completion_once_result
79
79
__git_bug_debug " "
80
80
__git_bug_debug " ========= clearing previously set __git_bug_perform_completion_once_result variable =========="
81
81
set --erase __git_bug_perform_completion_once_result
82
- __git_bug_debug " Succesfully erased the variable __git_bug_perform_completion_once_result"
82
+ __git_bug_debug " Successfully erased the variable __git_bug_perform_completion_once_result"
83
83
end
84
84
85
85
function __git_bug_requires_order_preservation
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ filter __git-bug_escapeStringWithSpecialChars {
10
10
$_ -replace ' \s|#|@|\$|;|,|' ' |\{|\}|\(|\)|"|`|\||<|>|&' ,' `$&'
11
11
}
12
12
13
- [scriptblock]$__git_bugCompleterBlock = {
13
+ [scriptblock]${ __git_bugCompleterBlock} = {
14
14
param(
15
15
$WordToComplete ,
16
16
$CommandAst ,
@@ -85,7 +85,7 @@ filter __git-bug_escapeStringWithSpecialChars {
85
85
86
86
__git-bug_debug " Calling $RequestComp "
87
87
# First disable ActiveHelp which is not supported for Powershell
88
- $env :GIT_BUG_ACTIVE_HELP=0
88
+ ${ env: GIT_BUG_ACTIVE_HELP} =0
89
89
90
90
# call the command store the output in $out and redirect stderr and stdout to null
91
91
# $Out is an array contains each line per element
@@ -242,4 +242,4 @@ filter __git-bug_escapeStringWithSpecialChars {
242
242
}
243
243
}
244
244
245
- Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock $__git_bugCompleterBlock
245
+ Register-ArgumentCompleter -CommandName 'git-bug' -ScriptBlock ${ __git_bugCompleterBlock}
You can’t perform that action at this time.
0 commit comments