Skip to content

Commit 10c5b68

Browse files
authored
Merge pull request drivercraft#16 from ZR233/dev-v2
feat: 更新构建配置文件路径注释,移除默认值说明;修正 prepare_config 调用中的文件名
2 parents f567ffa + 80c6840 commit 10c5b68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ostool/src/ctx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl AppContext {
191191
&mut self,
192192
config_path: Option<PathBuf>,
193193
) -> anyhow::Result<BuildConfig> {
194-
let content = prepare_config::<BuildConfig>(self, config_path, ".config.toml").await?;
194+
let content = prepare_config::<BuildConfig>(self, config_path, ".build.toml").await?;
195195

196196
let config: BuildConfig = toml::from_str(&content)?;
197197
println!("Build configuration: {:?}", config);

ostool/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ enum SubCommands {
3131

3232
#[derive(Args, Debug)]
3333
struct RunArgs {
34-
/// Path to the build configuration file, default to `.config.toml`
34+
/// Path to the build configuration file
3535
#[arg(short, long)]
3636
config: Option<PathBuf>,
3737
#[command(subcommand)]

0 commit comments

Comments
 (0)