solar-core 1.0.5

Core library for cargo-solar command.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use clap::Parser;

use crate::{Action, SolarError, Tool};

#[derive(Parser, Clone)]
pub struct Install {
    /// The name of the tool to install.
    #[command(subcommand)]
    tool: Tool,
}

impl Install {
    pub fn run(&mut self) -> Result<(), SolarError> {
        self.tool.act(&Action::INSTALL, None)
    }
}