feat: add no-push config to disable automatic git push

Wire up the existing --no-push flag to a config option so it can be
set as the default, and update bd prime output accordingly.

- Add no-push default to config.go, matching existing pattern
- Check config in sync.go when --no-push flag not explicitly set
- Update bd prime output to omit git push step when enabled
This commit is contained in:
Doug Campos
2025-12-16 01:08:29 -05:00
parent ede652dbb8
commit eff58e494c
4 changed files with 30 additions and 0 deletions

View File

@@ -106,6 +106,9 @@ func Initialize() error {
// Sync configuration defaults (bd-4u8)
v.SetDefault("sync.require_confirmation_on_mass_delete", false)
// Push configuration defaults
v.SetDefault("no-push", false)
// Read config file if it was found
if configFileSet {
if err := v.ReadInConfig(); err != nil {