MCPcopy Create free account
hub / github.com/dagit/rust-prolog / exec_cmd

Function exec_cmd

src/main.rs:58–88  ·  view source on GitHub ↗

[exec_cmd cmd] executes the toplevel command [cmd]. Returns Some() when the computation succeeded and None when the command failed. */

(
    db: &mut Database,
    heap: &mut Heap,
    cmd: &ToplevelCmd,
    rl: &mut Editor<(), rustyline::history::DefaultHistory>,
    interrupted: &Arc<AtomicBool>,
    max_depth: i32,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

exec_cmdsFunction · 0.85

Calls 4

assertFunction · 0.85
solve_toplevelFunction · 0.85
exec_fileFunction · 0.85
cleanupMethod · 0.80

Tested by

no test coverage detected