use std::path::PathBuf;
use clap::Parser;
use crate::{Action, Tool, SolarError};
#[derive(Parser, Clone)]
pub struct Upgrade {
#[command(subcommand)]
tool: Option<Tool>,
#[arg(short, long, default_value = ".")]
destination: PathBuf,
}
impl Upgrade {
pub fn run(&self) -> Result<(), SolarError> {
Tool::perform(&self.tool, Action::UPGRADE)
}
}