geolocate 0.2.2

A CLI for geolocation data providers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(unused_imports)]

use clap::Parser;
use geolocate::location::{APIKeys, Args, Geolocation, LocationFrom};
use std::{error::Error, fmt::format};

fn main() -> Result<(), Box<dyn Error>> {
  let args = Args::parse();
  let geolocation = Geolocation::from(args.ip, args.name, args.api_key, args.file, args.default)?;

  let with = geolocation.with();

  with.fetch()?;

  Ok(())
}