blob: d9e9fb16917100ca74e7a331fa33a56548287449 (
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) -> Box<dyn Command>;
/// Checks if a command exists.
fn has(&self, name: &str) -> bool;
fn get_names(&self) -> Vec<String>;
}
|