Skip to main content

lean_ctx_cli/setup/
options.rs

1// SPDX-License-Identifier: Apache-2.0
2#[derive(Debug, Clone, Default)]
3pub struct SetupOptions {
4    pub non_interactive: bool,
5    pub yes: bool,
6    pub fix: bool,
7    pub json: 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}