Skip to main content

run_command_formatter

Function run_command_formatter 

Source
pub fn run_command_formatter(
    template: &str,
    abs_path: &str,
    project_root: &str,
) -> Result<(), String>
Expand description

Run an external formatter command on abs_path with cwd project_root (so tool config like rustfmt.toml is discovered). Returns Err with a clear message if the binary is missing or the command exits non-zero.