feat: add verbose and dry run

This commit is contained in:
2026-09-07 14:12:53 +00:00
parent ab93e7ef4f
commit b2a0c08256
5 changed files with 83 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
use ahab::{cli, scripts};
use ahab::{cli, command_builder, scripts};
use anyhow::Result;
use clap::Parser;
@@ -6,6 +6,11 @@ use clap::Parser;
fn main() -> Result<()> {
let args = cli::Ahab::parse();
command_builder::set_options(command_builder::Options {
verbose: args.verbose,
dry_run: args.dry_run,
});
match args.command {
cli::Commands::Django { command } => match command {
cli::Django::Bash => scripts::django::bash(),