Skip to content

Commit 024d213

Browse files
committed
Improve resulting code
1 parent a2e8e86 commit 024d213

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rds-cli-completion-generator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
// Basic utility info
3535
const (
3636
APP = "rds-cli-completion-generator"
37-
VER = "0.0.1"
37+
VER = "0.0.2"
3838
DESC = "Tool to generate completion for RDS CLI"
3939
)
4040

@@ -220,10 +220,10 @@ func printCommandsCode(commands InfoSlice) {
220220
fmtc.NewLine()
221221
for _, c := range commands {
222222
if len(c.Arguments) == 0 {
223-
fmtc.Printfn(` { {y}"%s"{!}, nil },`, c.Name)
223+
fmtc.Printfn(` { {y}"%s"{!}, {*}nil{!}, {*}false{!} },`, c.Name)
224224
} else {
225225
fmtc.Printfn(
226-
" { {y}\"%s\"{!}, {*}[]string{!}{"+formatArgumentsSlice(c.Arguments)+"} },",
226+
" { {y}\"%s\"{!}, {*}[]string{!}{"+formatArgumentsSlice(c.Arguments)+"}, {*}false{!} },",
227227
c.Name,
228228
)
229229
}

0 commit comments

Comments
 (0)