feat: deprecate compose subcommand

This commit is contained in:
2026-09-04 14:35:57 +00:00
parent d11b0c68cd
commit 6e44527a9a
10 changed files with 43 additions and 109 deletions

View File

@@ -6,6 +6,7 @@ use anyhow::{Result, anyhow};
use crate::command_builder::CommandBuilder;
use crate::compose::Compose;
use crate::scripts::docker_compose;
use crate::{create_file, safe_create_file};
const DEBUG_TEMPLATE: &str = r#"from django.core.management.base import BaseCommand
@@ -54,6 +55,15 @@ pub fn make_command(app: &PathBuf, name: &str) -> Result<()> {
Ok(())
}
pub fn bash() -> Result<()> {
run(&["bash".to_string()])
}
pub fn run(rest: &[String]) -> Result<()> {
let service = Compose::resolve()?.django()?;
docker_compose::run(&service, rest)
}
pub fn manage(rest: &[String]) -> Result<()> {
let container = Compose::resolve()?.django()?;
let joined = rest.join(" ");