diff --git a/crates/aiken/src/cmd/blueprint/convert.rs b/crates/aiken/src/cmd/blueprint/convert.rs new file mode 100644 index 00000000..3108726d --- /dev/null +++ b/crates/aiken/src/cmd/blueprint/convert.rs @@ -0,0 +1,27 @@ +use std::path::PathBuf; + +/// Convert a blueprint into other formats. +#[derive(clap::Args)] +#[clap(setting(clap::AppSettings::DeriveDisplayOrder))] +pub struct Args { + /// Path to project + directory: Option, + + /// Name of the validator's module within the project. Optional if there's only one validator. + #[clap(short, long)] + module: Option, + + /// Name of the validator within the module. Optional if there's only one validator. + #[clap(short, long)] + validator: Option, +} + +pub fn exec( + Args { + directory, + module, + validator, + }: Args, +) -> miette::Result<()> { + Ok(()) +} diff --git a/crates/aiken/src/cmd/blueprint/mod.rs b/crates/aiken/src/cmd/blueprint/mod.rs index 0dde4d8a..9ca6dfb9 100644 --- a/crates/aiken/src/cmd/blueprint/mod.rs +++ b/crates/aiken/src/cmd/blueprint/mod.rs @@ -1,5 +1,6 @@ pub mod address; pub mod apply; +pub mod convert; use clap::Subcommand; @@ -9,11 +10,13 @@ use clap::Subcommand; pub enum Cmd { Address(address::Args), Apply(apply::Args), + Convert(convert::Args), } pub fn exec(cmd: Cmd) -> miette::Result<()> { match cmd { Cmd::Address(args) => address::exec(args), Cmd::Apply(args) => apply::exec(args), + Cmd::Convert(args) => convert::exec(args), } }