1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use clap::Parser;
use std::path::PathBuf;
#[derive(Parser, Debug)]
pub struct Checkpoint {
#[clap(forbid_empty_values = true, required = true)]
pub container_id: String,
#[clap(long)]
pub ext_unix_sk: bool,
#[clap(long)]
pub file_locks: bool,
#[clap(long, default_value = "checkpoint")]
pub image_path: PathBuf,
#[clap(long)]
pub leave_running: bool,
#[clap(long)]
pub shell_job: bool,
#[clap(long)]
pub tcp_established: bool,
#[clap(long)]
pub work_path: Option<PathBuf>,
}