wasmer_cli/commands/app/cdn/
disable.rs

1use super::{AppIdentOpts, WasmerEnv, configure_cdn_cache};
2use crate::commands::AsyncCliCommand;
3
4/// Disable CDN cache for an app.
5#[derive(clap::Parser, Debug)]
6pub struct CmdAppCdnDisable {
7    #[clap(flatten)]
8    pub env: WasmerEnv,
9
10    #[clap(flatten)]
11    pub ident: AppIdentOpts,
12}
13
14#[async_trait::async_trait]
15impl AsyncCliCommand for CmdAppCdnDisable {
16    type Output = ();
17
18    async fn run_async(self) -> Result<(), anyhow::Error> {
19        configure_cdn_cache(self.env, self.ident, false).await
20    }
21}