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, andktrs servefor build tools.
Modules§
- ktfmt
- Port of ktfmt’s
clipackage (v0.64): thektfmtbinary’s flags, messages and exit codes. - ktrs
- The native
ktrscommand.ktrs fmtmaps its flags onto ktfmt’sParsedArgsand runs the sameMain, so output, messages and exit codes stay those of thektfmtdrop-in. - serve
ktrs serve: a long-lived formatter for build tools (the Java shim injava/), so a build pays for process startup once instead of once per file.