Skip to main content

execute_apply

Function execute_apply 

Source
pub async fn execute_apply(
    args: &ApplyArgs,
    config_service: &dyn ConfigService,
) -> Result<()>
Expand description

Handle the cache apply subcommand.

Loads the cached dry-run results and replays the file operations without calling the AI provider. Validates the file snapshot and target paths before proceeding, prompts for confirmation unless --yes is supplied, and aborts on non-TTY stdin without --yes.

ยงArguments

  • args - Parsed cache apply arguments controlling validation bypass, confirmation, and confidence filtering.
  • config_service - Active configuration service for rebuilding the MatchConfig needed by the engine replay path.