cli: add --show-io-errors and `--no-server to export cmd
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ib3b3818fbd7902678c3a4cecc079f8fb6a6a6964
This commit is contained in:
parent
63f09b359d
commit
7187b3289f
1 changed files with 11 additions and 0 deletions
|
|
@ -20,6 +20,17 @@ pub async fn execute(
|
||||||
log::info!("Exporting all profiles");
|
log::info!("Exporting all profiles");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handle --no-server flag
|
||||||
|
if args.no_server {
|
||||||
|
log::info!("Server content will be excluded from export");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Handle --show-io-errors flag
|
||||||
|
let show_io_errors = args.show_io_errors;
|
||||||
|
if show_io_errors {
|
||||||
|
log::info!("IO errors will be shown during export");
|
||||||
|
}
|
||||||
|
|
||||||
let lockfile_dir = lockfile_path.parent().unwrap_or(Path::new("."));
|
let lockfile_dir = lockfile_path.parent().unwrap_or(Path::new("."));
|
||||||
let config_dir = config_path.parent().unwrap_or(Path::new("."));
|
let config_dir = config_path.parent().unwrap_or(Path::new("."));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue