This commit is contained in:
Raptorox 2026-07-28 17:31:47 +02:00
parent dbf872baeb
commit f01661339e
No known key found for this signature in database
GPG key ID: 8B3556FC3ED1F6D8

17
src/command/kill.rs Normal file
View file

@ -0,0 +1,17 @@
#[derive(Default)]
pub struct KillCommand {
target: Option<super::Selector>
}
impl KillCommand {
pub fn target(mut self, target: super::Selector) -> Self {
self.target = Some(target);
self
}
pub fn build(self) -> super::Command {
let target = self.target.unwrap_or(super::Selector::Executor);
let s = format!("kill {target}");
super::Command(s)
}
}