Skip to main content

liboci_cli/
ps.rs

1use clap::{self, Args};
2
3/// Display the processes inside the container
4#[derive(Args, Debug)]
5pub struct Ps {
6    /// format to display processes: table or json (default: "table")
7    #[arg(short, long, default_value = "table")]
8    pub format: String,
9    /// Container identifier
10    #[arg(value_parser = clap::builder::NonEmptyStringValueParser::new(), required = true)]
11    pub container_id: String,
12    /// options will be passed to the ps utility
13    #[arg(trailing_var_arg = true, allow_hyphen_values = true)]
14    pub ps_options: Vec<String>,
15}