bos-cli 0.3.1

Command line utility helps to develop widgets for near.social by allowing developers to use standard developer tools like their best code editor and standard tools for source code version control, and then deploy their widgets to SocialDB in one command.
use strum::{EnumDiscriminants, EnumIter, EnumMessage};

mod deploy;
mod download;

#[derive(Debug, Clone, interactive_clap::InteractiveClap)]
#[interactive_clap(context = crate::GlobalContext)]
pub struct Components {
    #[interactive_clap(subcommand)]
    command: self::ComponentsCommand,
}

#[derive(Debug, EnumDiscriminants, Clone, interactive_clap::InteractiveClap)]
#[interactive_clap(context = crate::GlobalContext)]
#[strum_discriminants(derive(EnumMessage, EnumIter))]
/// What are you up to?
pub enum ComponentsCommand {
    #[strum_discriminants(strum(message = "download -   Download widgets from account"))]
    /// Download widgets from account
    Download(self::download::AccountId),
    #[strum_discriminants(strum(
        message = "deploy               -   Deploy widget if code has changed"
    ))]
    /// Deploy widget if code has changed
    Deploy(self::deploy::DeployToAccount),
}