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

geo-engine / geoengine / 12049697707

27 Nov 2024 11:26AM UTC coverage: 90.51% (+0.06%) from 90.449%
12049697707

push

github

web-flow
Merge pull request #999 from geo-engine/remove-pro-v1

Remove pro v1

69 of 313 new or added lines in 8 files covered. (22.04%)

12 existing lines in 6 files now uncovered.

133056 of 147007 relevant lines covered (90.51%)

54765.75 hits per line

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

92.31
/services/src/bin/geoengine-cli.rs
1
use clap::{Parser, Subcommand};
2
use geoengine_services::cli::{
3
    check_heartbeat, check_successful_startup, CheckSuccessfulStartup, Heartbeat,
4
};
5

6
/// CLI for Geo Engine Utilities
7
#[derive(Debug, Parser)]
8
#[command(version, about, long_about = None)]
9
struct Cli {
10
    #[command(subcommand)]
11
    command: Commands,
12
}
13

14
#[derive(Debug, Subcommand)]
15
enum Commands {
16
    /// Checks the program's `STDERR` for successful startup
17
    CheckSuccessfulStartup(CheckSuccessfulStartup),
18

19
    /// Checks if the Geo Engine server is alive
20
    Heartbeat(Heartbeat),
21
}
22

23
impl Commands {
24
    async fn execute(self) -> Result<(), anyhow::Error> {
4✔
25
        match self {
4✔
26
            Commands::CheckSuccessfulStartup(params) => check_successful_startup(params).await,
43✔
27
            Commands::Heartbeat(params) => check_heartbeat(params).await,
6✔
28
        }
29
    }
4✔
30
}
31

32
#[tokio::main]
33
#[allow(clippy::print_stderr)]
34
async fn main() {
4✔
35
    let cli = Cli::parse();
4✔
36

4✔
37
    if let Err(err) = cli.command.execute().await {
49✔
38
        eprintln!("Error: {err}");
4✔
NEW
39
        std::process::exit(1);
×
40
    }
4✔
41
}
4✔
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

© 2026 Coveralls, Inc