vdev/commands/e2e/
stop.rs

1use anyhow::Result;
2use clap::Args;
3
4use crate::testing::integration::ComposeTestLocalConfig;
5
6/// Stop an e2e-test environment
7#[derive(Args, Debug)]
8#[command()]
9pub struct Cli {
10    /// The e2e test name to stop
11    test: String,
12}
13
14impl Cli {
15    pub fn exec(self) -> Result<()> {
16        crate::commands::compose_tests::stop::exec(ComposeTestLocalConfig::e2e(), &self.test)
17    }
18}