liboci_cli/kill.rs
1use clap::Args;
2
3/// Send the specified signal to the container
4#[derive(Args, Debug)]
5pub struct Kill {
6 /// Container identifier
7 #[arg(value_parser = clap::builder::NonEmptyStringValueParser::new(), required = true)]
8 pub container_id: String,
9 /// Signal to send to the container (e.g. KILL, TERM, 9)
10 pub signal: String,
11 /// Send the signal to all processes inside the container
12 #[arg(short, long)]
13 pub all: bool,
14}