geopackage-cli 0.11.0

Command-line tool for OGC GeoPackage (.gpkg) files: inspect, validate, index, repair and copy, and read tiles and coverages
//! The CLI's error type.
//!
//! `geopackage::Error` covers what the library does. A command-line tool also
//! writes files and parses arguments, and the library error has no variants for
//! those and should not gain them. This type wraps it rather than widening it.

/// Anything a subcommand can fail with.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// The library rejected or could not do something.
    #[error("{0}")]
    Gpkg(#[from] geopackage::Error),
    /// Reading or writing a file outside the GeoPackage failed, such as the
    /// `--out` target of `tiles get`.
    #[error("{0}")]
    Io(#[from] std::io::Error),
}

pub type Result<T> = std::result::Result<T, Error>;