diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-27 06:43:17 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-27 06:43:17 +0800 |
| commit | 7404a0e1b324ded78f6d579b4da2dcbafe5f72ca (patch) | |
| tree | 3a5bbe87ec8e9b86e97f708907b725c002a2ba4e /src/cmds/arg/storage_write.rs | |
| parent | 84b004a421000c776f1009687562a47533d6cff7 (diff) | |
Add storage build and write commands
Diffstat (limited to 'src/cmds/arg/storage_write.rs')
| -rw-r--r-- | src/cmds/arg/storage_write.rs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/cmds/arg/storage_write.rs b/src/cmds/arg/storage_write.rs new file mode 100644 index 0000000..e00dfdf --- /dev/null +++ b/src/cmds/arg/storage_write.rs @@ -0,0 +1,33 @@ +use std::path::PathBuf; + +use clap::Parser; + +#[derive(Parser, Debug)] +pub struct JVStorageWriteArgument { + pub file: PathBuf, + pub storage: PathBuf, + + #[arg(short = 'o', long = "output")] + pub output_index: Option<PathBuf>, + + #[arg(long = "line")] + pub line_chunking: bool, + + #[arg(long = "cdc", default_value_t = 0)] + pub cdc_chunking: u32, + + #[arg(long = "fixed", default_value_t = 0)] + pub fixed_chunking: u32, + + #[arg(long)] + pub b: bool, + + #[arg(long)] + pub kb: bool, // default chunk size unit + + #[arg(long)] + pub mb: bool, + + #[arg(long)] + pub gb: bool, +} |
