1use std::path::PathBuf;
2
3use clap::Parser;
4
5#[derive(Parser, Debug)]
8pub struct Checkpoint {
9 #[clap(long, default_value = "checkpoint")]
11 pub image_path: PathBuf,
12 #[clap(long)]
14 pub work_path: Option<PathBuf>,
15 #[clap(long)]
17 pub parent_path: Option<PathBuf>,
18 #[clap(long)]
20 pub leave_running: bool,
21 #[clap(long)]
23 pub tcp_established: bool,
24 #[clap(long)]
26 pub ext_unix_sk: bool,
27 #[clap(long)]
29 pub shell_job: bool,
30 #[clap(long)]
32 pub lazy_pages: bool,
33 #[clap(long)]
35 pub status_fd: Option<u32>, #[clap(long)]
38 pub page_server: Option<String>,
39 #[clap(long)]
41 pub file_locks: bool,
42 #[clap(long)]
44 pub pre_dump: bool,
45 #[clap(long)]
47 pub manage_cgroups_mode: Option<String>,
48 #[clap(long)]
50 pub empty_ns: bool,
51 #[clap(long)]
53 pub auto_dedup: bool,
54
55 #[clap(value_parser = clap::builder::NonEmptyStringValueParser::new(), required = true)]
56 pub container_id: String,
57}