Skip to content

Commit a5fcdc0

Browse files
committed
fix: pull applies all changes automatically without interactive picker
openboot pull should behave like git pull — apply all remote changes without prompting. The interactive selective-apply flow belongs to openboot sync. --dry-run still previews without applying.
1 parent 752fca6 commit a5fcdc0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/cli/pull.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ You can override it with --source.`,
2828
openboot pull --source alice/my-setup`,
2929
SilenceUsage: true,
3030
RunE: func(cmd *cobra.Command, args []string) error {
31+
// pull applies all changes automatically (like git pull).
32+
// Use 'openboot sync' for the interactive selective-apply flow.
33+
dryRun, _ := cmd.Flags().GetBool("dry-run")
34+
if !dryRun {
35+
_ = cmd.Flags().Set("yes", "true")
36+
}
3137
return runSync(cmd)
3238
},
3339
}

0 commit comments

Comments
 (0)