use crate::commands::config::{self, VenvAction};
use crate::common::GlobalOpts;
use clap::Subcommand;
#[derive(Subcommand, Debug, Clone)]
pub enum VenvCommand {
Create {
#[arg(short = 'y', long = "yes")]
yes: bool,
},
Path {
new_path: Option<String>,
},
}
pub fn handle_venv(command: VenvCommand, _opts: GlobalOpts) {
let action = match command {
VenvCommand::Create { yes } => VenvAction::Create { yes },
VenvCommand::Path { new_path } => VenvAction::Path { new_path },
};
config::handle_venv(action, _opts);
}