Skip to main content

resolve_command

Function resolve_command 

Source
pub fn resolve_command(ctx: &ResolveContext<'_>) -> Result<String>
Expand description

Resolve a command to a fully expanded command string ready for execution.

Resolution pipeline (SPEC §11.1):

  1. Config override → check [commands] section
  2. Unsupported check → error with hint
  3. Plugin mapping → dep.install/dep.install_pkg split
  4. Flag translation → append translated flags
  5. Template expansion → replace {{tool}}, {{args}}, etc.
  6. Append remaining args