summaryrefslogtreecommitdiff
path: root/vendor/github.com/spf13/cobra/powershell_completions.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-06-17 08:13:40 +0000
committerLibravatar GitHub <noreply@github.com>2024-06-17 08:13:40 +0000
commit7ab404d64335dc0b6977e9fb38140ad6fc5b91b7 (patch)
tree5c589e9a69f90ad6bc50036f5632758f1e5bf3ac /vendor/github.com/spf13/cobra/powershell_completions.go
parent[chore]: Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 (#3015) (diff)
downloadgotosocial-7ab404d64335dc0b6977e9fb38140ad6fc5b91b7.tar.xz
[chore]: Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 (#3016)
Diffstat (limited to 'vendor/github.com/spf13/cobra/powershell_completions.go')
-rw-r--r--vendor/github.com/spf13/cobra/powershell_completions.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/spf13/cobra/powershell_completions.go b/vendor/github.com/spf13/cobra/powershell_completions.go
index 551951939..a830b7bca 100644
--- a/vendor/github.com/spf13/cobra/powershell_completions.go
+++ b/vendor/github.com/spf13/cobra/powershell_completions.go
@@ -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 {