From f01661339e5592fb24cee231a1e004dad5912e5f Mon Sep 17 00:00:00 2001 From: Raptorox <70806316+Raptorox@users.noreply.github.com> Date: Tue, 28 Jul 2026 17:31:47 +0200 Subject: [PATCH] add kill --- src/command/kill.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/command/kill.rs diff --git a/src/command/kill.rs b/src/command/kill.rs new file mode 100644 index 0000000..bc8b1a2 --- /dev/null +++ b/src/command/kill.rs @@ -0,0 +1,17 @@ +#[derive(Default)] +pub struct KillCommand { + target: Option +} + +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) + } +} \ No newline at end of file