Expand description
CLI translation layer: converts clap ArgMatches into domain types.
This module bridges the clap-specific parsing world with the
CLI-agnostic OperationCall and ExecutionContext types used
by the execution engine.
Functions§
- cli_
to_ execution_ context - Builds an
ExecutionContextfrom CLI flags and optional global config. - extract_
server_ var_ args - Extracts server variable arguments from CLI matches.
- has_
show_ examples_ flag - Returns true if the
--show-examplesflag is set in the operation’s matches. - matches_
to_ operation_ call - Converts clap
ArgMatches(from a dynamically generated command tree) into a CLI-agnosticOperationCall. - matches_
to_ operation_ id - Resolves the matched operation and returns its
operation_id.