feat: prepare initial cli layout

Made initial command scopes
d -> docker related commands
dc -> docker compose related commands
dj -> django related commands
pg -> postgres related commands
This commit is contained in:
2023-05-21 22:35:12 +02:00
parent f6e9c7953a
commit eb232a93f8
12 changed files with 220 additions and 0 deletions

26
src/cli/docker_compose.rs Normal file
View File

@@ -0,0 +1,26 @@
use clap::Subcommand;
/// 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,
}