vdev/commands/integration/
stop.rs

1use anyhow::Result;
2use clap::Args;
3
4use crate::testing::integration::ComposeTestLocalConfig;
5
6/// Stop an integration test environment
7#[derive(Args, Debug)]
8#[command()]
9pub struct Cli {
10    /// The integration name to stop
11    integration: String,
12
13    /// If true, remove the runner container compiled with all integration test features
14    #[arg(short = 'a', long)]
15    all_features: bool,
16}
17
18impl Cli {
19    pub fn exec(self) -> Result<()> {
20        crate::commands::compose_tests::stop::exec(
21            ComposeTestLocalConfig::integration(),
22            &self.integration,
23            self.all_features,
24        )
25    }
26}