Skip to content

Commit

Permalink
Respect ongoing value in configuration for further commands
Browse files Browse the repository at this point in the history
  • Loading branch information
penguwin committed Sep 4, 2020
1 parent 0a556f1 commit 84fd6c6
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 @@ -58,6 +58,9 @@ func configureRestoreOpts(cmd *cobra.Command, opts *RestoreOptions) {
if !cmd.Flags().Changed("excludes") {
opts.Excludes = rep.RestoreExcludes
}
if !cmd.Flags().Changed("ongoing") {
opts.Ongoing = rep.Ongoing
}
}
}

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("ongoing") {
opts.Ongoing = rep.Ongoing
}
}
}

Expand Down

0 comments on commit 84fd6c6

Please sign in to comment.