Unity.Repl (Unity v0.7.0)

Copy Markdown View Source

Interactive REPL (Read-Eval-Print Loop) for the units calculator.

Supports expression evaluation, variable bindings with let, chained conversions with _ (previous result), and special commands like help, list, search, conformable, info, locale, and quit.

Summary

Functions

Starts the interactive REPL.

Functions

start(options \\ [])

@spec start(keyword()) :: :ok

Starts the interactive REPL.

Options

  • :quiet - if true, suppresses the welcome banner. Defaults to false.

  • :locale - initial locale for formatting. Defaults to the current process locale.

  • :history_file - path to a directory for persisting command history across sessions. Defaults to "~/.unity_history". Set to nil to disable. Only used when the REPL bootstraps its own terminal (i.e. not running under IEx).