Skip to main content

signstar_configure/
cli.rs

1//! Command line interface for `signstar-configure`.
2
3use clap::Parser;
4use clap_verbosity_flag::Verbosity;
5
6/// Command line arguments for configuring Signstar hosts.
7#[derive(Debug, Parser)]
8#[command(
9    about = "Configure a Signstar host and its HSM backends.",
10    long_about = "Configure a Signstar host and its HSM backends.
11
12Reads the Signstar configuration file of the current system.
13Afterwards attempts to synchronize the state of all available HSM backends with that of the configuration file.
14
15Returns a non-zero exit code and an error message on stderr if any of the above fails.
16"
17)]
18pub struct Cli {
19    /// Global processing log verbosity.
20    #[command(flatten)]
21    pub verbosity: Verbosity,
22}