Skip to main content

run_fmt

Function run_fmt 

Source
pub fn run_fmt(prog: &str, args: &FmtArgs) -> ExitCode
Expand description

The fmt command body shared by bynkc fmt and bynk fmt: each input is formatted and rewritten only when it changes; --check reports non-canonical files without writing; - reads stdin and writes the formatted result to stdout. prog prefixes messages (bynk fmt: …).