Skip to main content

Module cli

Module cli 

Source
Expand description

CLI: two-pass argv split, clap globals, and mode dispatch.

split_at_subcommand keeps tool flags (e.g. a tool named --env) out of the global parser (upstream GH #15). Session start/stop/list and --session are handled before source-mode mutual exclusion.

Re-exports§

pub use dispatch::dispatch;

Modules§

args
Global CLI flags parsed after crate::cli::split_at_subcommand.
bake
skiff bake subcommand handlers.
dispatch
Top-level CLI dispatch: bake / @name / sessions / OpenAPI / MCP / GraphQL.
dynamic
Dynamic tool/subcommand argument parsing from CommandDef.
list
–list output formatting.

Functions§

global_option_sets
Global flag sets for the pre-parser (subset used for splitting).
split_at_subcommand
Split argv into (global_args, tool_args) at the first positional subcommand.