Helps ensure that all services implement the same standard flag set and allows easily expanding said flag set. Existing tests check flags are added as expected --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [ ] 💻 CI/Deployment - [x] 🧹 Tech Debt/Cleanup #### Test Plan - [ ] 💪 Manual - [x] ⚡ Unit test - [ ] 💚 E2E
12 lines
194 B
Go
12 lines
194 B
Go
package flags
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func AddGenericBackupFlags(cmd *cobra.Command) {
|
|
AddFailFastFlag(cmd)
|
|
AddDisableIncrementalsFlag(cmd)
|
|
AddForceItemDataDownloadFlag(cmd)
|
|
}
|