feat: allow --validate on sync command

This will permit usage of `--validate` options with sync command

Signed-off-by: Grégory SANCHEZ <gregory.sanchez@icloud.com>
This commit is contained in:
Grégory SANCHEZ
2022-05-17 14:00:55 +02:00
parent 34a431f5f2
commit 62747378ca
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -363,6 +363,7 @@ func (a *App) Sync(c SyncConfigProvider) error {
WaitForJobs: c.WaitForJobs(),
IncludeCRDs: &includeCRDs,
IncludeTransitiveNeeds: c.IncludeTransitiveNeeds(),
Validate: c.Validate(),
}, func() {
ok, errs = a.sync(run, c)
})
+2
View File
@@ -85,6 +85,8 @@ type SyncConfigProvider interface {
Wait() bool
WaitForJobs() bool
Validate() bool
SkipNeeds() bool
IncludeNeeds() bool
IncludeTransitiveNeeds() bool