Skip to main content

solar_core/
subcommand.rs

1pub mod deinit;
2pub mod init;
3pub mod install;
4pub mod new;
5pub mod uninstall;
6pub mod update;
7pub mod upgrade;
8
9pub use deinit::Deinit;
10pub use init::Init;
11pub use install::Install;
12pub use new::New;
13pub use uninstall::Uninstall;
14pub use update::Update;
15pub use upgrade::Upgrade;
16
17use clap::Subcommand as SC;
18
19#[derive(SC, Clone)]
20pub enum Subcommand {
21    /// Create a new Solar project in a new directory with a configuration.
22    NEW(New),
23
24    /// Initialize a new Solar project with a configuration in the current directory.
25    INIT(Init),
26
27    /// Updates the configuration of tools on the current project.
28    UPDATE(Update),
29
30    /// Upgrade a single tool in the solar project.
31    UPGRADE(Upgrade),
32
33    /// Install tools from the Solar framework to the project.
34    INSTALL(Install),
35
36    /// Removes Solar framework tools from the project.
37    UNINSTALL(Uninstall),
38
39    /// Deinitializes a solar project.
40    DEINIT(Deinit),
41}