1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use clap::Parser;
use std::path::PathBuf;
/// Update running container resource constraints
#[derive(Parser, Debug)]
pub struct Update {
    #[clap(forbid_empty_values = true, required = true)]
    pub container_id: String,
    /// Read the new resource limits from the given json file. Use - to read from stdin.
    /// If this option is used, all other options are ignored.
    #[clap(short, long)]
    pub resources: Option<PathBuf>,
    /// Set the maximum number of processes allowed in the container
    #[clap(long)]
    pub pids_limit: Option<i64>,
}