feat(complete): add command name
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
shimun 2023-07-12 22:52:59 +02:00
parent 675dd4faf6
commit 9f6a5e03c9
Signed by: shimun
GPG Key ID: E0420647856EA39E
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ pub struct RenewCommandArgs {
} }
#[derive(Parser)] #[derive(Parser)]
#[command(name = "sshcd")]
pub struct ClientCommand { pub struct ClientCommand {
#[clap(subcommand)] #[clap(subcommand)]
cmd: ClientCommands, cmd: ClientCommands,

View File

@ -32,6 +32,7 @@ use tracing::{debug, info, trace};
use self::extract::{CertificateBody, JWTAuthenticated, JWTString, SignatureBody}; use self::extract::{CertificateBody, JWTAuthenticated, JWTString, SignatureBody};
#[derive(Parser)] #[derive(Parser)]
#[command(name = "sshcd-server")]
pub struct ApiArgs { pub struct ApiArgs {
#[clap(short = 'a', long = "address", env = env_key!("SOCKET_ADDRESS"))] #[clap(short = 'a', long = "address", env = env_key!("SOCKET_ADDRESS"))]
address: SocketAddr, address: SocketAddr,