summaryrefslogtreecommitdiffstats
path: root/sq/src/sq_cli/keystore.rs
blob: 46082471ebe07f755c9baf6af011306411c287c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use clap::{Args, Parser, Subcommand};

#[derive(Parser, Debug)]
#[clap(
    name = "keystore",
    about = "Interact with the keystore",
    long_about =
"Interact with the keystore
",
    after_help =
"EXAMPLES:

# List the keys.
$ sq keystore list
",
    subcommand_required = true,
    arg_required_else_help = true
)]
pub struct Command {
    #[clap(subcommand)]
    pub subcommand: Subcommands,
}


#[derive(Debug, Subcommand)]
pub enum Subcommands {
    List(ListCommand),
}

#[derive(Debug, Args)]
#[clap(
    about = "Lists resources on the keystore",
    long_about = "Lists resources on the keystore
",
    after_help = "EXAMPLES:

# List the keys on the keystore
$ sq keystore list
"
)]
pub struct ListCommand {
}