wasmer_cli/commands/app/version/
mod.rs1use crate::commands::AsyncCliCommand;
4
5pub mod activate;
6pub mod get;
7pub mod list;
8
9#[derive(clap::Subcommand, Debug)]
11pub enum CmdAppVersion {
12 Get(get::CmdAppVersionGet),
13 List(list::CmdAppVersionList),
14 Activate(activate::CmdAppVersionActivate),
15}
16
17#[async_trait::async_trait]
18impl AsyncCliCommand for CmdAppVersion {
19 type Output = ();
20
21 async fn run_async(self) -> Result<(), anyhow::Error> {
22 match self {
23 Self::Get(cmd) => cmd.run_async().await,
24 Self::List(cmd) => cmd.run_async().await,
25 Self::Activate(cmd) => cmd.run_async().await,
26 }
27 }
28}