Skip to main content

solar_core/
subcommand.rs

1pub mod init;
2pub mod install;
3pub mod new;
4pub mod remove;
5pub mod upgrade;
6
7pub use init::Init;
8pub use install::Install;
9pub use new::New;
10pub use remove::Remove;
11pub use upgrade::Upgrade;
12
13use clap::Subcommand as SC;
14
15#[derive(SC, Clone)]
16pub enum Subcommand {
17    /// Create a new Solar project in a new directory.
18    NEW(New),
19
20    /// Initialize a new Solar project.
21    INIT(Init),
22
23    /// Upgrade the versions of the tools in the Solar project.
24    UPGRADE(Upgrade),
25
26    /// Install tools from the Solar framework to the project.
27    INSTALL(Install),
28
29    /// Removes Solar framework tools from the project.
30    REMOVE(Remove),
31}