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

geo-engine / geoengine / 19537157963

20 Nov 2025 12:39PM UTC coverage: 88.458%. First build
19537157963

Pull #1083

github

web-flow
Merge 49b049e99 into ba34db99d
Pull Request #1083: feat: new gdal source workflow optimization

6339 of 7660 new or added lines in 79 files covered. (82.75%)

116533 of 131738 relevant lines covered (88.46%)

492817.7 hits per line

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

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

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

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

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

23
    /// Outputs OpenAPI JSON
24
    #[command(name = "openapi")]
25
    OpenAPI(OpenAPIGenerate),
26

27
    // Imports a tiled dataset
28
    TileImport(TileImport),
29
}
30

31
impl Commands {
32
    async fn execute(self) -> Result<(), anyhow::Error> {
6✔
33
        match self {
6✔
34
            Commands::CheckSuccessfulStartup(params) => check_successful_startup(params).await,
2✔
35
            Commands::Heartbeat(params) => check_heartbeat(params).await,
2✔
36
            Commands::OpenAPI(params) => output_openapi_json(params).await,
2✔
NEW
37
            Commands::TileImport(params) => tile_import(params).await,
×
38
        }
39
    }
6✔
40
}
41

42
#[tokio::main]
43
#[allow(clippy::print_stderr)]
44
async fn main() {
6✔
45
    let cli = Cli::parse();
6✔
46

47
    if let Err(err) = cli.command.execute().await {
6✔
48
        eprintln!("Error: {err}");
6✔
49
        std::process::exit(1);
6✔
50
    }
6✔
51
}
6✔
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