wasmer_cli/commands/app/deployments/
mod.rs1use crate::commands::AsyncCliCommand;
2
3pub mod get;
4pub mod list;
5pub mod logs;
6
7#[derive(Debug, clap::Parser)]
9pub enum CmdAppDeployment {
10 List(list::CmdAppDeploymentList),
11 Get(get::CmdAppDeploymentGet),
12 Logs(logs::CmdAppDeploymentLogs),
13}
14
15#[async_trait::async_trait]
16impl AsyncCliCommand for CmdAppDeployment {
17 type Output = ();
18
19 async fn run_async(self) -> Result<Self::Output, anyhow::Error> {
20 match self {
21 Self::List(c) => c.run_async().await,
22 Self::Get(c) => c.run_async().await,
23 Self::Logs(c) => c.run_async().await,
24 }
25 }
26}