feat(cli): add empty export commands
This commit is contained in:
parent
2abf626e25
commit
b63bd9b9e0
|
@ -0,0 +1,14 @@
|
|||
#[derive(clap::Args)]
|
||||
pub struct Args {
|
||||
/// Name of the validator's module within the project. Optional if there's only one validator
|
||||
#[clap(short, long)]
|
||||
module: String,
|
||||
|
||||
/// Name of the validator within the module. Optional if there's only one validator
|
||||
#[clap(short, long)]
|
||||
name: String,
|
||||
}
|
||||
|
||||
pub fn exec(args: Args) -> miette::Result<()> {
|
||||
Ok(())
|
||||
}
|
|
@ -6,6 +6,7 @@ pub mod build;
|
|||
pub mod check;
|
||||
pub mod completion;
|
||||
pub mod docs;
|
||||
pub mod export;
|
||||
pub mod fmt;
|
||||
pub mod lsp;
|
||||
pub mod new;
|
||||
|
@ -21,6 +22,8 @@ pub enum Cmd {
|
|||
New(new::Args),
|
||||
Fmt(fmt::Args),
|
||||
|
||||
Export(export::Args),
|
||||
|
||||
#[clap(visible_alias("b"))]
|
||||
Build(build::Args),
|
||||
Address(blueprint::address::Args),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use aiken_project::{config, pretty};
|
||||
use cmd::{
|
||||
blueprint::{self, address},
|
||||
build, check, completion, docs, fmt, lsp, new,
|
||||
build, check, completion, docs, export, fmt, lsp, new,
|
||||
packages::{self, add},
|
||||
tx, uplc, Cmd,
|
||||
};
|
||||
|
@ -26,6 +26,7 @@ fn main() -> miette::Result<()> {
|
|||
Cmd::Tx(sub_cmd) => tx::exec(sub_cmd),
|
||||
Cmd::Uplc(sub_cmd) => uplc::exec(sub_cmd),
|
||||
Cmd::Completion(sub_cmd) => completion::exec(sub_cmd),
|
||||
Cmd::Export(args) => export::exec(args),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue