cargo-solar 0.0.1

Cargo tool for automating use of the solar framework used for building rust projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use cargo_solar::Args;
use clap::Parser;
use solar_core::{SolarError, Subcommand};

fn main() -> Result<(), SolarError> {
    let args = Args::parse();
    match args.subcommand {
        Subcommand::INIT(cmd) => cmd.run(),
        Subcommand::NEW(cmd) => cmd.run(),
        Subcommand::UPGRADE(cmd) => cmd.run(),
        Subcommand::INSTALL(cmd) => cmd.run(),
        Subcommand::REMOVE(cmd) => cmd.run(),
    }
}