feat: add verbose and dry run
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user