aiken 0.0.28

Cardano smart contract language and toolchain
Documentation
use std::path::PathBuf;

#[derive(clap::Args)]
/// Build an Aiken project
pub struct Args {
    /// Path to project
    directory: Option<PathBuf>,

    /// Output directory for the documentation
    #[clap(short = 'o', long)]
    destination: Option<PathBuf>,
}

pub fn exec(
    Args {
        directory,
        destination,
    }: Args,
) -> miette::Result<()> {
    crate::with_project(directory, |p| p.docs(destination.clone()))
}