[chore]: Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 (#3016)

This commit is contained in:
dependabot[bot]
2024-06-17 08:13:40 +00:00
committed by GitHub
parent cc64de4dcc
commit 7ab404d643
12 changed files with 128 additions and 96 deletions

View File

@ -28,8 +28,8 @@ import (
func genPowerShellComp(buf io.StringWriter, name string, includeDesc bool) {
// Variables should not contain a '-' or ':' character
nameForVar := name
nameForVar = strings.Replace(nameForVar, "-", "_", -1)
nameForVar = strings.Replace(nameForVar, ":", "_", -1)
nameForVar = strings.ReplaceAll(nameForVar, "-", "_")
nameForVar = strings.ReplaceAll(nameForVar, ":", "_")
compCmd := ShellCompRequestCmd
if !includeDesc {