liboci-cli 0.7.0

Parse command line arguments for OCI container runtimes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use clap::Args;

/// Release any resources held by the container
#[derive(Args, Debug)]
pub struct Delete {
    /// Container identifier
    #[arg(value_parser = clap::builder::NonEmptyStringValueParser::new(), required = true)]
    pub container_id: String,
    /// forces deletion of the container if it is still running (using SIGKILL)
    #[arg(short, long)]
    pub force: bool,
}