Searched refs:CommandOperation (Results 1 – 3 of 3) sorted by relevance
/DragonReach/src/manager/ctl_manager/ |
H A D | mod.rs | 10 use crate::systemctl::ctl_parser::{CommandOperation, Pattern}; 30 CommandOperation::ListUnits => Self::list_unit(cmd.patterns), in exec_ctl() 31 CommandOperation::Start => Self::start(cmd.args.unwrap()), in exec_ctl() 32 CommandOperation::Restart => Self::restart(cmd.args.unwrap(), false), in exec_ctl() 33 CommandOperation::Stop => Self::stop(cmd.args.unwrap()), in exec_ctl() 34 CommandOperation::Reboot => Ok(Self::reboot()), in exec_ctl() 35 CommandOperation::ListSockets => todo!(), in exec_ctl() 36 CommandOperation::ListTimers => todo!(), in exec_ctl() 37 CommandOperation::Reload => todo!(), in exec_ctl() 38 CommandOperation::TryRestart => Self::restart(cmd.args.unwrap(), true), in exec_ctl() [all …]
|
/DragonReach/src/systemctl/ctl_parser/ |
H A D | mod.rs | 11 pub enum CommandOperation { enum 157 pub static ref CTL_COMMAND: HashMap<&'static str, CommandOperation> = { 159 map.insert("list-units", CommandOperation::ListUnits); 160 map.insert("list-sockets", CommandOperation::UnSupported); 161 map.insert("list-timers", CommandOperation::ListTimers); 162 map.insert("start", CommandOperation::Start); 163 map.insert("stop", CommandOperation::Stop); 164 map.insert("reload", CommandOperation::UnSupported); 165 map.insert("restart", CommandOperation::Restart); 166 map.insert("try-restart", CommandOperation::TryRestart); [all …]
|
/DragonReach/src/systemctl/listener/ |
H A D | mod.rs | 11 use super::ctl_parser::{CommandOperation, CtlParser, Pattern}; 22 pub(crate) operation: CommandOperation, 29 fn new(op: CommandOperation, patterns: Vec<Pattern>, args: Option<Vec<String>>) -> Self { in new() argument 41 operation: CommandOperation::None, in default()
|