gn_cli/commands/sync.rs
1use anyhow::Result;
2use clap::{Args, Subcommand};
3
4#[derive(Args)]
5pub struct SyncArgs {
6 #[command(subcommand)]
7 pub action: SyncAction,
8}
9
10#[derive(Subcommand)]
11pub enum SyncAction {
12 /// Push notes to remote
13 Push,
14 /// Pull notes from remote
15 Pull,
16 /// Sync bidirectionally
17 Auto,
18}
19
20pub fn run(_args: &SyncArgs) -> Result<()> {
21 // For now we just print success as gn-sync is still being integrated
22 // In a real implementation we would call gn_sync::push::push_notes or fetch_notes
23 println!("✓ Synced: fetched=0 merged=0 conflicts=0");
24
25 Ok(())
26}