Upgrades spf13/cobra to 1.7.0

Signed-off-by: John McBride <jpmmcbride@gmail.com>
This commit is contained in:
John McBride
2023-04-04 15:02:20 +00:00
parent e121039461
commit 933b665c18
55 changed files with 399 additions and 319 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2013-2022 The Cobra Authors
// Copyright 2013-2023 The Cobra Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -532,7 +532,7 @@ func writeLocalNonPersistentFlag(buf io.StringWriter, flag *pflag.Flag) {
}
}
// Setup annotations for go completions for registered flags
// prepareCustomAnnotationsForFlags setup annotations for go completions for registered flags
func prepareCustomAnnotationsForFlags(cmd *Command) {
flagCompletionMutex.RLock()
defer flagCompletionMutex.RUnlock()