Skip to content

Commit a7f8520

Browse files
committed
refactor: remove sync command, merge into pull, add diff hints
openboot sync is removed — openboot pull now owns all the apply logic. The interactive multi-select was removed with sync; pull auto-applies all remote changes (use --dry-run to preview first). diff now shows 'openboot pull / openboot push' hints when changes exist so the direction is always obvious.
1 parent a5fcdc0 commit a7f8520

File tree

5 files changed

+516
-583
lines changed

5 files changed

+516
-583
lines changed

internal/cli/diff.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/openbootdotdev/openboot/internal/config"
99
"github.com/openbootdotdev/openboot/internal/diff"
1010
"github.com/openbootdotdev/openboot/internal/snapshot"
11+
"github.com/openbootdotdev/openboot/internal/ui"
1112
"github.com/spf13/cobra"
1213
)
1314

@@ -84,6 +85,12 @@ func runDiff(cmd *cobra.Command) error {
8485
}
8586

8687
diff.FormatTerminal(result, packagesOnly)
88+
89+
if result.HasChanges() {
90+
fmt.Println()
91+
ui.Muted(" Apply remote → local: openboot pull • Upload local → remote: openboot push")
92+
}
93+
8794
return nil
8895
}
8996

0 commit comments

Comments
 (0)