Skip to content

Commit 5e64923

Browse files
committed
Fix code generation for 'MIGRATE' command
1 parent 024d213 commit 5e64923

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rds-cli-completion-generator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"fmt"
1212
"os"
1313
"sort"
14+
"strconv"
1415
"strings"
1516

1617
"github.com/essentialkaos/ek/v13/fmtc"
@@ -236,7 +237,7 @@ func formatArgumentsSlice(args []string) string {
236237
var result []string
237238

238239
for _, a := range args {
239-
result = append(result, fmt.Sprintf("{y}\"%s\"{!}", a))
240+
result = append(result, fmt.Sprintf("{y}%s{!}", strconv.Quote(a)))
240241
}
241242

242243
return strings.Join(result, ", ")

0 commit comments

Comments
 (0)