cargo-program 0.0.4

Utility to simplify Gear programs development
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;
use clap::{AppSettings, Parser};

use crate::error::CrateError;

/// Login to the Gear backend
#[derive(Debug, Parser)]
#[clap(global_setting=AppSettings::DisableVersionFlag)]
pub(crate) struct LoginCommand {
    /// User's token
    token: String,
}

impl LoginCommand {
    pub fn run(&self) -> Result<()> {
        Err(CrateError::UnimplementedCommand.into())
    }
}