Skip to content

Commit

Permalink
Respect 'pedantic' value from configuration in further commands
Browse files Browse the repository at this point in the history
  • Loading branch information
penguwin committed Sep 16, 2020
1 parent c507c96 commit 3e83a87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/knoxite/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ func configureRestoreOpts(cmd *cobra.Command, opts *RestoreOptions) {
if !cmd.Flags().Changed("excludes") {
opts.Excludes = rep.RestoreExcludes
}
if !cmd.Flags().Changed("pedantic") {
opts.Pedantic = rep.Pedantic
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions cmd/knoxite/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func configureStoreOpts(cmd *cobra.Command, opts *StoreOptions) {
if !cmd.Flags().Changed("excludes") {
opts.Excludes = rep.StoreExcludes
}
if !cmd.Flags().Changed("pedantic") {
opts.Pedantic = rep.Pedantic
}
}
}

Expand Down

0 comments on commit 3e83a87

Please sign in to comment.