vdev/commands/e2e/
start.rs

1use anyhow::Result;
2use clap::Args;
3
4use crate::testing::integration::ComposeTestLocalConfig;
5
6/// Start an environment
7#[derive(Args, Debug)]
8#[command()]
9pub struct Cli {
10    /// The e2e test name
11    test: String,
12
13    /// The desired environment name to start. If omitted, the first environment name is used.
14    environment: Option<String>,
15}
16
17impl Cli {
18    pub fn exec(self) -> Result<()> {
19        crate::commands::compose_tests::start::exec(
20            ComposeTestLocalConfig::e2e(),
21            &self.test,
22            self.environment.as_ref(),
23        )
24    }
25}