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
13
14
15
use clap::{self, Args};

/// Display the processes inside the container
#[derive(Args, Debug)]
pub struct Ps {
    /// format to display processes: table or json (default: "table")
    #[arg(short, long, default_value = "table")]
    pub format: String,
    /// Container identifier
    #[arg(value_parser = clap::builder::NonEmptyStringValueParser::new(), required = true)]
    pub container_id: String,
    /// options will be passed to the ps utility
    #[arg(trailing_var_arg = true, allow_hyphen_values = true)]
    pub ps_options: Vec<String>,
}