Skip to main content

Crate ktrs_cli

Crate ktrs_cli 

Source
Expand description

Command-line front ends.

  • ktfmt — a drop-in for ktfmt’s CLI: same flags, messages, exit codes and stdin/stdout.
  • ktrs — the native command (ktrs fmt), a thin layer over the same engine, and ktrs serve for build tools.

Modules§

ktfmt
Port of ktfmt’s cli package (v0.64): the ktfmt binary’s flags, messages and exit codes.
ktrs
The native ktrs command. ktrs fmt maps its flags onto ktfmt’s ParsedArgs and runs the same Main, so output, messages and exit codes stay those of the ktfmt drop-in.
serve
ktrs serve: a long-lived formatter for build tools (the Java shim in java/), so a build pays for process startup once instead of once per file.