bos-cli 0.3.3

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 delete;
mod set;
mod view;

#[derive(Debug, Clone, interactive_clap::InteractiveClap)]
#[interactive_clap(context = near_cli_rs::GlobalContext)]
pub struct Data {
    #[interactive_clap(subcommand)]
    data_command: DataCommand,
}

#[derive(Debug, EnumDiscriminants, Clone, interactive_clap::InteractiveClap)]
#[interactive_clap(context = near_cli_rs::GlobalContext)]
#[strum_discriminants(derive(EnumMessage, EnumIter))]
/// Select the data command:
pub enum DataCommand {
    #[strum_discriminants(strum(message = "view     -   Viewing information by a given key"))]
    /// Viewing information by a given key
    View(self::view::View),
    #[strum_discriminants(strum(
        message = "set      -   Adding or updating information by a given key"
    ))]
    /// Adding or updating information by a given key
    Set(self::set::Set),
    #[strum_discriminants(strum(message = "delete   -   Deleting information by a given key"))]
    /// Deleting information by a given key
    Delete(self::delete::Delete),
}