bynk/fmt.rs
1//! `bynk fmt` — format `.bynk` source files in place.
2//!
3//! Runs the formatter in-process over `bynk-fmt` (v0.138, #487), mirroring
4//! `bynk fmt` byte-for-byte: each input is formatted and rewritten only when it
5//! changes; `--check` reports non-canonical files without writing; `-` reads
6//! stdin and writes the formatted result to stdout. The body is
7//! [`bynk_driver::run_fmt`], shared with `bynk`.
8
9use std::process::ExitCode;
10
11use bynk_driver::FmtArgs;
12
13/// Run `bynk fmt`.
14pub fn run(args: FmtArgs) -> ExitCode {
15 bynk_driver::run_fmt("bynk", &args)
16}