feat: deprecate compose subcommand
This commit is contained in:
@@ -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(" ");
|
||||
|
||||
Reference in New Issue
Block a user