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