Skip to content

Commit c44efe3

Browse files
committed
Allow validate command without config file
1 parent bc21bc4 commit c44efe3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ async fn main() -> anyhow::Result<()> {
301301
Config::default()
302302
};
303303

304-
// Check for config requirement (all commands except init require .acp.config.json)
305-
let requires_config = !matches!(cli.command, Commands::Init { .. });
304+
// Check for config requirement (most commands require .acp.config.json)
305+
let requires_config = !matches!(cli.command, Commands::Init { .. } | Commands::Validate { .. });
306306
if requires_config {
307307
let config_path = PathBuf::from(".acp.config.json");
308308
if !config_path.exists() {

0 commit comments

Comments
 (0)