This document contains a list of features we want to add to the CLI. These will be filed as issues, once development is a bit further along.
- support jsonl (e.g. multiple JSON lines) for
--input
- provide
--output-format=simple,json,...to define the format of the result simplereturns the (current) easy to read format:{foo: "bar", baz: [0, true]}jsonreturns valid JSON output- might add more if useful
- should default to
jsonfor maximum compatibility
- add
--profileflag - profile performance of TRL scripts
- execution time (total and per expression)
- memory allocations (https://docs.rs/dhat/0.1.1/dhat/)
- add
--docsflag - should open the TRL documentation in the browser
- add
--examplesflag - should print a list of common input > program > result examples
- currently all TRL functions are implemented in Vector itself
- this means they aren't available in this CLI
- we should move those into a
trl-contriblibrary - this CLI (and Vector) will depend on that library
- this ensures feature parity between Vector and this CLI
- this one is only partially related to the CLI
- the goal is to compile TRL to wasm
- using that, provide a simple demo website that has two input fields
- one field takes a JSON payload
- the second a TRL program
- running the program shows the execution result on the page
- TRL runs locally in the browser, no web-server required