blob: 8cade1f3498ff562265a5a5435185bf60b868ce8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//! ref: composer/vendor/symfony/console/CommandLoader/CommandLoaderInterface.php
use crate::symfony::console::command::command::Command;
pub trait CommandLoaderInterface: std::fmt::Debug {
/// Loads a command.
///
/// @throws CommandNotFoundException
fn get(&self, name: &str) -> std::rc::Rc<std::cell::RefCell<dyn Command>>;
/// Checks if a command exists.
fn has(&self, name: &str) -> bool;
fn get_names(&self) -> Vec<String>;
}
|