Skip to main content

lean_ctx/setup/
options.rs

1#[derive(Debug, Clone, Default)]
2pub struct SetupOptions {
3    pub non_interactive: bool,
4    pub yes: bool,
5    pub fix: bool,
6    pub json: bool,
7    pub no_auto_approve: bool,
8    pub skip_proxy: bool,
9    pub skip_rules: bool,
10    /// Explicitly request rules injection (overrides config).
11    pub force_inject_rules: bool,
12    /// `--agents`: configure exactly these agent keys (validated by the CLI)
13    /// and record them as the selection for later updates.
14    pub agents: Option<std::collections::BTreeSet<String>>,
15    /// Post-update refresh: without a recorded selection, touch only tools
16    /// that already carry a lean-ctx entry — never newly detected ones.
17    pub refresh_only: bool,
18    /// Report what would be written; write nothing.
19    pub dry_run: bool,
20}