feat!: respect COMPOSE_FILE env and remove docker command

Read COMPOSE_FILE from env and use it if it is set. Default is still
docker/local/docker-compose.yaml.

BREAKING CHANGE: Removed docker subcommand. Added deprecation notice to
compose subcommand.
This commit is contained in:
2024-10-25 09:37:04 +02:00
parent 73a0b87c31
commit 3077420db2
7 changed files with 143 additions and 167 deletions

View File

@@ -1,4 +1,4 @@
use super::{Django, Docker, DockerCompose, Postgres};
use super::{Django, DockerCompose, Postgres};
use clap::{Parser, Subcommand};
/// A program for interacting with various dockerized applications.
@@ -11,12 +11,6 @@ pub struct Ahab {
#[derive(Debug, Subcommand)]
pub enum Commands {
/// Docker related subcommands
Docker {
#[command(subcommand)]
command: Docker,
},
/// Docker compose related subcommands
Compose {
#[command(subcommand)]