Skip to main content

Crate htl_cli

Crate htl_cli 

Source
Expand description

htl CLI. Also built as cargo-htl so cargo htl <verb> works.

  • htl check <paths...> type-check files or directories
  • htl gen <file.tl> emit readable Lua (escape hatch)
  • htl run <file.tl|.hb> type-check then execute (strict: type errors abort)
  • htl build <dir> compile a tree of .tl into one stripped-bytecode bundle
  • htl bundle info <.hb> print what a bundle records, without running it
  • htl lsp a language server on stdio; its diagnostics are htl check’s

Modules§

report
--format json: the same facts the text output prints, as one JSON document on stdout (text goes to stderr, so the two never mix), and the same exit code as in text mode. Field names are stable; new fields may be added, existing ones are not renamed.

Functions§

command
The command line as clap holds it, before any argument is parsed.
run
Parse the command line and run the command; the exit code.