• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

getdozer / dozer / 4382580286

pending completion
4382580286

push

github

GitHub
feat: Separate cache operation log environment and index environments (#1199)

1370 of 1370 new or added lines in 33 files covered. (100.0%)

28671 of 41023 relevant lines covered (69.89%)

51121.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/dozer-admin/src/cli/cli_process.rs
1
use std::{path::Path, process::Command};
2

3
use super::{utils::init_db, AdminCliConfig};
4
use crate::server;
5

6
pub struct CliProcess {
7
    pub config: AdminCliConfig,
8
}
9
impl CliProcess {
10
    fn start_ui_server(&self) {
×
11
        let ui_path = Path::new(&self.config.ui_path);
×
12
        if ui_path.exists() {
×
13
            // execute command serve
×
14
            Command::new("serve")
×
15
                .arg("-s")
×
16
                .arg(&self.config.ui_path)
×
17
                .spawn()
×
18
                .expect("Start ui server failed");
×
19
        }
×
20
    }
×
21
    pub async fn start(&mut self) -> Result<(), Box<dyn std::error::Error>> {
×
22
        init_db();
×
23

×
24
        // start ui
×
25
        self.start_ui_server();
×
26

×
27
        server::start_admin_server(self.config.to_owned()).await?;
×
28
        Ok(())
×
29
    }
×
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc