pub struct Cli {
pub ai_backend: Option<AiBackend>,
pub claude_cli_allow_tools: bool,
pub claude_cli_allow_mcp: bool,
pub claude_cli_max_budget_usd: Option<f64>,
pub command: Commands,
}Expand description
omni-dev: A comprehensive development toolkit.
Fields§
§ai_backend: Option<AiBackend>Selects the AI backend used by commands that invoke an AI model.
Overrides the OMNI_DEV_AI_BACKEND environment variable.
claude_cli_allow_tools: boolWeakens the claude-cli sandbox by allowing the nested claude -p
session to use its default built-in tools (Read, Edit, Write, Bash,
Glob, Grep).
Only use for deliberately tool-capable use cases. By default the
nested session runs with --tools "" and cannot touch the
file system. This flag removes that guard. Equivalent to setting
OMNI_DEV_CLAUDE_CLI_ALLOW_TOOLS=true. Independent of
--claude-cli-allow-mcp.
Ignored when --ai-backend is not claude-cli.
claude_cli_allow_mcp: boolWeakens the claude-cli sandbox by allowing the nested claude -p
session to load MCP servers from ~/.claude/settings.json.
Only use deliberately. MCP servers commonly hold OAuth tokens
(Gmail, Drive, Slack) and may be arbitrary network-attached services;
enabling this exposes them to the nested session. By default the
session runs with --strict-mcp-config and no MCP servers load.
Equivalent to setting OMNI_DEV_CLAUDE_CLI_ALLOW_MCP=true.
Independent of --claude-cli-allow-tools.
Ignored when --ai-backend is not claude-cli.
claude_cli_max_budget_usd: Option<f64>Per-invocation spending cap in USD for the claude-cli backend.
Forwarded to claude -p --max-budget-usd. When the nested session
exceeds this budget it aborts rather than running away with cost.
Equivalent to setting OMNI_DEV_CLAUDE_CLI_MAX_BUDGET_USD.
Ignored when --ai-backend is not claude-cli.
command: CommandsThe main command to execute.
Implementations§
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.