solar_core/subcommand/install.rs
1use clap::Parser;
2
3use crate::{Action, SolarError, Tool};
4
5#[derive(Parser, Clone)]
6pub struct Install {
7 /// The name of the tool to install.
8 #[command(subcommand)]
9 tool: Tool,
10}
11
12impl Install {
13 pub fn run(&mut self) -> Result<(), SolarError> {
14 self.tool.act(&Action::INSTALL, None)
15 }
16}