pidge 2.1.1

The e-mail and calendar client for your AI agent
1
2
3
4
5
6
7
8
9
10
11
12
//! `--dry-run` for the few local commands that support it (`pidge mcp
//! connect`). Mail and calendar changes preview through plans instead.

static DRY_RUN: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false);

pub fn set_dry_run() {
    DRY_RUN.store(true, std::sync::atomic::Ordering::SeqCst);
}

pub fn dry_run_active() -> bool {
    DRY_RUN.load(std::sync::atomic::Ordering::SeqCst)
}