Skip to main content

Module journal

Module journal 

Source
Expand description

§TUI Journal

Two files under the scope data directory:

  • history.txt: the input history, one line per entry. The rustyline REPL wrote the same file, so old history carries over.
  • tui-events.jsonl: one JSON object per submitted line, with the exact input, the argument vector clap parsed, where the command ran, how long it took and how it ended. One more object records a signal that ends the TUI. Use it to find out after the fact what a TUI session did.

Structs§

Event
One record in tui-events.jsonl.
Journal
Where the journal files live. None paths turn the journal off.

Constants§

HISTORY_LIMIT
The most history entries kept on disk.