ahab/src/cli/docker_compose.rs

38 lines
642 B
Rust
Raw Normal View History

use clap::Subcommand;
2023-05-23 23:43:52 +02:00
// TODO: (matej) add Exec, Bash
/// Wraper for docker compose; autodiscover compose file and source .env file.
#[derive(Subcommand, Debug)]
pub enum DockerCompose {
/// Start bash session inside container
Bash,
/// Build containers.
Build,
/// Down containers.
Down,
/// Exec command inside container.
Exec {
#[arg(value_enum)]
rest: Vec<String>,
},
/// Stop, build and start containers.
Rebuild,
/// Stop and start containers.
Restart,
/// Start containers.
Start,
/// Stop containers.
Stop,
/// Up containers.
Up,
}