wasmer_cli/commands/app/secrets/
mod.rs1use crate::commands::AsyncCliCommand;
2
3pub mod create;
4pub mod delete;
5pub mod list;
6pub mod reveal;
7pub mod update;
8mod utils;
9
10#[derive(Debug, clap::Parser)]
12pub enum CmdAppSecrets {
13 Create(create::CmdAppSecretsCreate),
14 Delete(delete::CmdAppSecretsDelete),
15 Reveal(reveal::CmdAppSecretsReveal),
16 List(list::CmdAppSecretsList),
17 Update(update::CmdAppSecretsUpdate),
18}
19
20#[async_trait::async_trait]
21impl AsyncCliCommand for CmdAppSecrets {
22 type Output = ();
23
24 async fn run_async(self) -> Result<Self::Output, anyhow::Error> {
25 match self {
26 CmdAppSecrets::Create(c) => {
27 c.run_async().await?;
28 Ok(())
29 }
30 CmdAppSecrets::Delete(c) => {
31 c.run_async().await?;
32 Ok(())
33 }
34 CmdAppSecrets::Reveal(c) => {
35 c.run_async().await?;
36 Ok(())
37 }
38 CmdAppSecrets::List(c) => {
39 c.run_async().await?;
40 Ok(())
41 }
42
43 CmdAppSecrets::Update(c) => {
44 c.run_async().await?;
45 Ok(())
46 }
47 }
48 }
49}