Skip to content

Commit b2f4e7c

Browse files
authored
对于预编译源任务的DADK命令行创建,不提供构建命令的输入 (#11)
* 对DADK new预编译源任务跳过build command的输入
1 parent 674005c commit b2f4e7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/console/new_config.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ impl NewConfigCommand {
104104

105105
let dep: Vec<Dependency> = DependencyInput::new().input()?;
106106
debug!("dep: {:?}", dep);
107-
let build_config: BuildConfig = BuildConfigInput::new().input()?;
107+
let build_config: BuildConfig = match &task_type {
108+
TaskType::InstallFromPrebuilt(_) => BuildConfig::new(Option::Some("".to_string())),
109+
TaskType::BuildFromSource(_) => BuildConfigInput::new().input()?,
110+
};
108111
debug!("build_config: {:?}", build_config);
109112
let install_config: InstallConfig = InstallConfigInput::new().input()?;
110113
debug!("install_config: {:?}", install_config);

0 commit comments

Comments
 (0)