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