Skip to main content

ktrs_cli/
lib.rs

1//! Command-line front ends.
2//!
3//! - `ktfmt` — a drop-in for ktfmt's CLI: same flags, messages, exit codes and stdin/stdout.
4//! - `ktlint` — a drop-in for ktlint's CLI (2.0.0-ALPHA-4, or 1.8.0 with `--ktlint-version=1.8`): same flags,
5//!   reporters, messages and exit codes.
6//! - `ktrs`  — the native command (`ktrs fmt`, `ktrs lint`), a thin layer over the same engines, and
7//!   `ktrs serve` for build tools (ktfmt and ktlint requests), `ktrs lsp` (crates/ktrs-lsp) for editors, and
8//!   `ktrs migrate` (crates/ktrs-project's `migrate`) for switching builds to the drop-ins.
9
10pub mod java_launcher;
11pub mod ktfmt;
12pub mod ktlint;
13pub mod ktrs;
14pub mod ktrs_lint;
15pub mod migrate;
16pub mod serve;
17mod serve_ktlint;