command
datumhue repl
Interactive Lua REPL. Reads lines from stdin, evaluates each against the running app's globals, and prints results. Optional path (a .lua file, package directory, or .dhpkg archive) is loaded the same way datumhue run would; omit it for an empty service app. Meta-commands start with : (:quit, :help). A terminal gets line editing and history; --no-tty reads stdin line-by-line for piped input.
datumhue repl [OPTIONS] [PATH] [-- <SCRIPT_ARGS>...]| Argument | Default | Description |
|---|---|---|
[PATH] | none | Path to a |
[SCRIPT_ARGS]... | none | Tokens forwarded to the loaded script via |
| Option | Default | Description |
|---|---|---|
--dir <NAME:PATH> | none | Grant a read-only directory capability ( |
--dir-rw <NAME:PATH> | none | Grant a read-write directory capability ( |
--file <NAME:PATH> | none | Grant a read-only file capability ( |
--file-rw <NAME:PATH> | none | Grant a read-write file capability ( |
--service | off | Run the loaded |
--no-tty | off | Read stdin line-by-line instead of using the interactive line editor. Chosen automatically when stdin is not a terminal (piped from another process or a file) |
--watch | off | Watch the loaded source and reload the app when files change; the prompt re-attaches to the reloaded app. Requires a path |