Skip to main content

Module translate

Module translate 

Source
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 ExecutionContext from 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-examples flag is set in the operation’s matches.
matches_to_operation_call
Converts clap ArgMatches (from a dynamically generated command tree) into a CLI-agnostic OperationCall.
matches_to_operation_id
Resolves the matched operation and returns its operation_id.