From b63bd9b9e03bd15afd1e9c6278f461573930bb3c Mon Sep 17 00:00:00 2001 From: rvcas Date: Thu, 29 Feb 2024 13:01:40 -0500 Subject: [PATCH] feat(cli): add empty export commands --- crates/aiken/src/cmd/export.rs | 14 ++++++++++++++ crates/aiken/src/cmd/mod.rs | 3 +++ crates/aiken/src/main.rs | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 crates/aiken/src/cmd/export.rs diff --git a/crates/aiken/src/cmd/export.rs b/crates/aiken/src/cmd/export.rs new file mode 100644 index 00000000..773acf7b --- /dev/null +++ b/crates/aiken/src/cmd/export.rs @@ -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(()) +} diff --git a/crates/aiken/src/cmd/mod.rs b/crates/aiken/src/cmd/mod.rs index df542180..67de99b6 100644 --- a/crates/aiken/src/cmd/mod.rs +++ b/crates/aiken/src/cmd/mod.rs @@ -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), diff --git a/crates/aiken/src/main.rs b/crates/aiken/src/main.rs index ebbd5d12..4a2a94f8 100644 --- a/crates/aiken/src/main.rs +++ b/crates/aiken/src/main.rs @@ -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), } }