mirror of
https://codeberg.org/icewind/haze.git
synced 2026-10-01 16:54:08 +02:00
add formatting command
This commit is contained in:
parent
5f0551979a
commit
2627bb9427
6 changed files with 125 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::exec::{exec, exec_tty};
|
||||
use crate::exec::{exec, exec_tty, ExitCode};
|
||||
use crate::image::pull_image;
|
||||
use bollard::container::{Config, CreateContainerOptions, NetworkingConfig};
|
||||
use bollard::models::{EndpointSettings, HostConfig};
|
||||
|
|
@ -215,7 +215,7 @@ impl Database {
|
|||
cloud_id: &str,
|
||||
cmd: Vec<S>,
|
||||
tty: bool,
|
||||
) -> Result<i64> {
|
||||
) -> Result<ExitCode> {
|
||||
let container = match self.family() {
|
||||
DatabaseFamily::Sqlite => cloud_id.to_string(),
|
||||
_ => format!("{}-db", cloud_id.to_string()),
|
||||
|
|
@ -227,7 +227,7 @@ impl Database {
|
|||
}
|
||||
}
|
||||
|
||||
pub async fn exec(&self, docker: &mut Docker, cloud_id: &str, root: bool) -> Result<i64> {
|
||||
pub async fn exec(&self, docker: &mut Docker, cloud_id: &str, root: bool) -> Result<ExitCode> {
|
||||
match self.family() {
|
||||
DatabaseFamily::Sqlite => {
|
||||
exec_tty(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue