MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / renew

Function renew

certbot/cli/src/main.rs:148–160  ·  view source on GitHub ↗
(config: &PathBuf, once: bool, force: bool)

Source from the content-addressed store, hash-verified

146}
147
148async fn renew(config: &PathBuf, once: bool, force: bool) -> Result<()> {
149 let bot_config = load_config(config).context("Failed to load configuration")?;
150 let bot = bot_config
151 .build_bot()
152 .await
153 .context("Failed to build bot")?;
154 if once {
155 bot.renew(force).await?;
156 } else {
157 bot.run().await;
158 }
159 Ok(())
160}
161
162#[tokio::main]
163async fn main() -> Result<()> {

Callers 1

mainFunction · 0.85

Calls 4

build_botMethod · 0.80
renewMethod · 0.80
load_configFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected