Run make fmt

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
Hubertbits 2025-04-12 00:19:15 +02:00 committed by yxxhero
parent a829524fc3
commit e8a4380e66
24 changed files with 440 additions and 445 deletions

View File

@ -1,6 +1,3 @@
package common
// For array/slice flags
@ -28,6 +25,7 @@ func NewStringArrayFlag(defaultValues []string) StringArrayFlag {
wasExplicitlySet: false,
}
}
// Values returns the values of the flag
// It returns a copy of the values to prevent external modifications
// and to ensure that the original values remain unchanged.

View File

@ -21,4 +21,3 @@ func (r *ApplyFlagRegistrar) RegisterFlags(cmd *cobra.Command) {
r.RegisterBoolFlag(cmd, "include-crds", &r.IncludeCRDs, false, "include CRDs in the diffing")
r.RegisterBoolFlag(cmd, "skip-crds", &r.SkipCRDs, false, "if set, no CRDs will be installed on sync. By default, CRDs are installed if not already present")
}

View File

@ -21,4 +21,3 @@ func (r *SyncFlagRegistrar) RegisterFlags(cmd *cobra.Command) {
r.RegisterBoolFlag(cmd, "include-crds", &r.IncludeCRDs, false, "include CRDs in the diffing")
r.RegisterBoolFlag(cmd, "skip-crds", &r.SkipCRDs, false, "if set, no CRDs will be installed on sync. By default, CRDs are installed if not already present")
}

View File

@ -19,4 +19,3 @@ func NewTemplateFlagRegistrar() *TemplateFlagRegistrar {
func (r *TemplateFlagRegistrar) RegisterFlags(cmd *cobra.Command) {
r.RegisterBoolFlag(cmd, "include-crds", &r.IncludeCRDs, false, "include CRDs in the diffing")
}