Debian Codegraph @

src/cli/cert/import.rs

raw
1 use std::path::PathBuf;
2
3 use clap::Parser;
4
5 use crate::cli::examples;
6 use examples::Action;
7 use examples::Actions;
8
9 const EXAMPLES: Actions = Actions {
10 actions: &[
11 Action::example().comment(
12 "Import a certificate."
13 ).command(&[
14 "sq", "cert", "import", "juliet.pgp",
15 ]).build(),
16 ]
17 };
18
19 test_examples!(sq_cert_import, EXAMPLES);
20
21 #[derive(Parser, Debug)]
22 #[clap(
23 name = "import",
24 about = "Import certificates into the local certificate store",
25 after_help = EXAMPLES,
26 )]
27 pub struct Command {
28 #[clap(value_name = "FILE", help = "Read from FILE or stdin if omitted")]
29 pub input: Vec<PathBuf>,
30 }