wasmer_cli/commands/app/volumes/
mod.rs

1use crate::commands::AsyncCliCommand;
2
3pub mod credentials;
4pub mod list;
5
6/// App volume management.
7#[derive(Debug, clap::Parser)]
8pub enum CmdAppVolumes {
9    Credentials(credentials::CmdAppVolumesCredentials),
10    List(list::CmdAppVolumesList),
11    RotateSecrets(credentials::rotate_secrets::CmdAppVolumesRotateSecrets),
12}
13
14#[async_trait::async_trait]
15impl AsyncCliCommand for CmdAppVolumes {
16    type Output = ();
17
18    async fn run_async(self) -> Result<Self::Output, anyhow::Error> {
19        match self {
20            Self::Credentials(c) => {
21                c.run_async().await?;
22                Ok(())
23            }
24            Self::RotateSecrets(c) => {
25                c.run_async().await?;
26                Ok(())
27            }
28            Self::List(c) => {
29                c.run_async().await?;
30                Ok(())
31            }
32        }
33    }
34}