lunes_cli/wallet/
mod.rs

1use clap::{Args, Subcommand};
2/// Commands to management your Lunes Wallet
3#[derive(Debug, Args)]
4#[clap(args_conflicts_with_subcommands = true)]
5pub struct Wallet {
6    #[clap(subcommand)]
7    pub command: Option<WalletCommands>,
8}
9
10#[derive(Debug, Subcommand)]
11pub enum WalletCommands {
12    /// Disabled
13    Rename(WalletRename),
14    /// Disabled
15    New(WalletNew),
16    /// Disabled
17    Add(WalletAdd),
18    /// Disabled
19    List,
20    /// Disabled
21    Del,
22}
23
24#[derive(Debug, Args)]
25pub struct WalletNew {
26    #[clap(short, long)]
27    pub name: Option<String>,
28}
29
30#[derive(Debug, Args)]
31pub struct WalletRename {
32    #[clap(short, long)]
33    pub old_name: Option<String>,
34    #[clap(short, long)]
35    pub new_name: Option<String>,
36}
37
38#[derive(Debug, Args)]
39pub struct WalletAdd {
40    #[clap(short, long)]
41    pub private_key: Option<String>,
42    #[clap(short, long)]
43    pub seed: Option<String>,
44    #[clap(short, long)]
45    pub name: Option<String>,
46}