From 7ac2f2645e0a844264cf9ed9eeb0398d2f2837e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 26 Mar 2023 22:09:19 +0200 Subject: [PATCH] Add dns_update_cmd to the CLI --- src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config.rs b/src/config.rs index bf67674..13bd2f3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -28,6 +28,8 @@ pub struct Config { cryptoperiod: NonZeroU64, #[arg(short, long, default_value_t = 1728000)] revocation: u64, + #[arg(short = 'u', long)] + dns_update_cmd: String, #[arg(short = 'x', long, default_value_t = 1296000)] expiration: u64, #[arg(short, long, action = clap::ArgAction::Count)] @@ -55,6 +57,10 @@ impl Config { self.cryptoperiod } + pub fn dns_update_cmd(&self) -> &str { + &self.dns_update_cmd + } + pub fn domains(&self) -> &[String] { &self.domain }