1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
mod build;
mod check;
mod new;
#[cfg(feature = "solc-backend")]
mod test;
mod verify;

pub use build::{build, BuildArgs};
pub use check::{check, CheckArgs};
use clap::Subcommand;
pub use new::{create_new_project, NewProjectArgs};
#[cfg(feature = "solc-backend")]
pub use test::{test, TestArgs};
#[cfg(feature = "solc-backend")]
pub use verify::{verify, VerifyArgs};

#[derive(Subcommand)]
pub enum Commands {
    Build(BuildArgs),
    Check(CheckArgs),
    New(NewProjectArgs),
    #[cfg(feature = "solc-backend")]
    Verify(VerifyArgs),
    #[cfg(feature = "solc-backend")]
    Test(TestArgs),
}