Add dep-file support for import command

This commit is contained in:
2025-11-04 20:09:01 +08:00
parent 245543baff
commit ffc85dde5c
2 changed files with 92 additions and 0 deletions

View File

@@ -638,6 +638,9 @@ pub struct ImportArgs {
pub replacement_json: Option<String>,
#[arg(long, action = ArgAction::SetTrue)]
pub warn_when_output_file_not_found: bool,
#[arg(long)]
/// Output dependency file path. This file will contain a list of all files used during import.
pub dep_file: Option<String>,
#[arg(short = 'j', long, default_value_t = 1)]
/// Workers count for import scripts in parallel.
pub jobs: usize,