parent
a829524fc3
commit
e8a4380e66
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue