MCPcopy Index your code
hub / github.com/endbasic/endbasic / add_all

Function add_all

std/src/help.rs:527–533  ·  view source on GitHub ↗

Adds all help-related commands to the `machine` and makes them write to `console`.

(
    machine: &mut MachineBuilder,
    console: Rc<RefCell<dyn Console>>,
    yielder: Option<Rc<RefCell<dyn Yielder>>>,
)

Source from the content-addressed store, hash-verified

525
526/// Adds all help-related commands to the `machine` and makes them write to `console`.
527pub fn add_all(
528 machine: &mut MachineBuilder,
529 console: Rc<RefCell<dyn Console>>,
530 yielder: Option<Rc<RefCell<dyn Yielder>>>,
531) {
532 machine.add_callable(HelpCommand::new(machine.callables_metadata(), console, yielder));
533}
534
535#[cfg(test)]
536pub(crate) mod testutils {

Callers 2

buildMethod · 0.70
safe_run_repl_loopMethod · 0.50

Calls 2

callables_metadataMethod · 0.80
add_callableMethod · 0.45

Tested by

no test coverage detected