unc-cli-rs 0.8.0

human-friendly console utility that helps to interact with unc Protocol from command line.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug, Clone, clap::Parser)]
/// This is a legacy `proposals` command. Once you run it with the specified arguments, new syntax command will be suggested.
pub struct ProposalsArgs {
    #[clap(allow_hyphen_values = true, num_args = 0..)]
    _unknown_args: Vec<String>,
}

impl ProposalsArgs {
    pub fn to_cli_args(&self, network_config: String) -> Vec<String> {
        vec![
            "validator".to_owned(),
            "proposals".to_owned(),
            "network-config".to_owned(),
            network_config,
        ]
    }
}