kanri 0.11.0

Manage your projects within the terminal.
Documentation
use clap::{Args, Subcommand};

#[derive(Subcommand)]
pub enum BlueprintsCommands {
    /// Create new blueprint.
    New(BlueprintsNewArgs),

    /// Edit an existing blueprint.
    Edit(BlueprintsEditArgs),

    /// List available blueprints.
    List,

    /// Perform a migration of templates to blueprints.
    MigrateTemplates,

    /// Check blueprint on syntax errors. It doesn't execute the code.
    Check(BlueprintsCheckArgs),

    /// Remove blueprint.
    Remove(BlueprintsRemoveArgs),
}

#[derive(Args)]
pub struct BlueprintsNewArgs {
    /// Name of new blueprint.
    pub name: String,
}

#[derive(Args)]
pub struct BlueprintsEditArgs {
    /// Name of blueprint to edit.
    pub name: String,
}

#[derive(Args)]
pub struct BlueprintsCheckArgs {
    /// Name of blueprint to check.
    pub name: String,
}

#[derive(Args)]
pub struct BlueprintsRemoveArgs {
    /// Name of blueprint to remove.
    pub name: String,
}