gleamunison/repl_graph
REPL code-graph commands (roadmap 9.8): view, dependents,
dependencies — answered by the datalog codebase index, reusing the
MCP graph wiring. Pure text in / text out; the REPL loop prints the
result.
Values
pub fn try_handle(
input: String,
cache: types.TypeCache,
defs: List(#(String, elab_types.SurfaceDef)),
) -> Result(String, Nil)
Handle a graph command, or pass through with Error(Nil) when the input is not one. Ok(output) includes usage errors for known command words.