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 check;
|
||||||
pub mod completion;
|
pub mod completion;
|
||||||
pub mod docs;
|
pub mod docs;
|
||||||
|
pub mod export;
|
||||||
pub mod fmt;
|
pub mod fmt;
|
||||||
pub mod lsp;
|
pub mod lsp;
|
||||||
pub mod new;
|
pub mod new;
|
||||||
|
@ -21,6 +22,8 @@ pub enum Cmd {
|
||||||
New(new::Args),
|
New(new::Args),
|
||||||
Fmt(fmt::Args),
|
Fmt(fmt::Args),
|
||||||
|
|
||||||
|
Export(export::Args),
|
||||||
|
|
||||||
#[clap(visible_alias("b"))]
|
#[clap(visible_alias("b"))]
|
||||||
Build(build::Args),
|
Build(build::Args),
|
||||||
Address(blueprint::address::Args),
|
Address(blueprint::address::Args),
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use aiken_project::{config, pretty};
|
use aiken_project::{config, pretty};
|
||||||
use cmd::{
|
use cmd::{
|
||||||
blueprint::{self, address},
|
blueprint::{self, address},
|
||||||
build, check, completion, docs, fmt, lsp, new,
|
build, check, completion, docs, export, fmt, lsp, new,
|
||||||
packages::{self, add},
|
packages::{self, add},
|
||||||
tx, uplc, Cmd,
|
tx, uplc, Cmd,
|
||||||
};
|
};
|
||||||
|
@ -26,6 +26,7 @@ fn main() -> miette::Result<()> {
|
||||||
Cmd::Tx(sub_cmd) => tx::exec(sub_cmd),
|
Cmd::Tx(sub_cmd) => tx::exec(sub_cmd),
|
||||||
Cmd::Uplc(sub_cmd) => uplc::exec(sub_cmd),
|
Cmd::Uplc(sub_cmd) => uplc::exec(sub_cmd),
|
||||||
Cmd::Completion(sub_cmd) => completion::exec(sub_cmd),
|
Cmd::Completion(sub_cmd) => completion::exec(sub_cmd),
|
||||||
|
Cmd::Export(args) => export::exec(args),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue