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>>>,
)
| 525 | |
| 526 | /// Adds all help-related commands to the `machine` and makes them write to `console`. |
| 527 | pub 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)] |
| 536 | pub(crate) mod testutils { |
no test coverage detected