feat(cli): add empty export commands

This commit is contained in:
rvcas 2024-02-29 13:01:40 -05:00 committed by Lucas
parent 2abf626e25
commit b63bd9b9e0
3 changed files with 19 additions and 1 deletions

View File

@ -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(())
}

View File

@ -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),

View File

@ -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),
}
}