2023-05-21 22:35:12 +02:00
|
|
|
use clap::Subcommand;
|
|
|
|
|
2023-05-23 23:43:52 +02:00
|
|
|
// TODO: (matej) add Exec, Bash
|
|
|
|
|
2023-05-21 22:35:12 +02:00
|
|
|
/// Wraper for docker compose; autodiscover compose file and source .env file.
|
|
|
|
#[derive(Subcommand, Debug)]
|
|
|
|
pub enum DockerCompose {
|
|
|
|
/// Build containers.
|
|
|
|
Build,
|
|
|
|
|
|
|
|
/// Down containers.
|
|
|
|
Down,
|
|
|
|
|
|
|
|
/// Stop, build and start containers.
|
|
|
|
Rebuild,
|
|
|
|
|
|
|
|
/// Stop and start containers.
|
|
|
|
Restart,
|
|
|
|
|
|
|
|
/// Start containers.
|
|
|
|
Start,
|
|
|
|
|
|
|
|
/// Stop containers.
|
|
|
|
Stop,
|
|
|
|
|
|
|
|
/// Up containers.
|
|
|
|
Up,
|
|
|
|
}
|