wasmer_cli/commands/namespace/
mod.rs1pub mod create;
2pub mod get;
3pub mod list;
4
5use crate::commands::AsyncCliCommand;
6
7#[derive(clap::Subcommand, Debug)]
9pub enum CmdNamespace {
10 Get(get::CmdNamespaceGet),
11 List(list::CmdNamespaceList),
12}
13
14#[async_trait::async_trait]
15impl AsyncCliCommand for CmdNamespace {
16 type Output = ();
17
18 async fn run_async(self) -> Result<(), anyhow::Error> {
19 match self {
20 CmdNamespace::List(cmd) => cmd.run_async().await,
21 CmdNamespace::Get(cmd) => cmd.run_async().await,
22 }
23 }
24}