mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Update full linter list and enable some easily resolved new ones
This commit is contained in:
@@ -132,11 +132,11 @@ var StackOnError bool
|
||||
const cmdName = "kustomize fn"
|
||||
|
||||
// FixDocs replaces instances of old with new in the docs for c
|
||||
func FixDocs(new string, c *cobra.Command) {
|
||||
c.Use = strings.ReplaceAll(c.Use, cmdName, new)
|
||||
c.Short = strings.ReplaceAll(c.Short, cmdName, new)
|
||||
c.Long = strings.ReplaceAll(c.Long, cmdName, new)
|
||||
c.Example = strings.ReplaceAll(c.Example, cmdName, new)
|
||||
func FixDocs(newStr string, c *cobra.Command) {
|
||||
c.Use = strings.ReplaceAll(c.Use, cmdName, newStr)
|
||||
c.Short = strings.ReplaceAll(c.Short, cmdName, newStr)
|
||||
c.Long = strings.ReplaceAll(c.Long, cmdName, newStr)
|
||||
c.Example = strings.ReplaceAll(c.Example, cmdName, newStr)
|
||||
}
|
||||
|
||||
// containsString returns true if slice contains s
|
||||
|
||||
Reference in New Issue
Block a user