Skip to content

v0.2.0

Choose a tag to compare

@ableinc ableinc released this 23 Apr 23:22
· 1 commit to main since this release

Read , lines 1 to 270

Read

Here are the release notes ready to paste into the GitHub release page:


What's New

This is the initial public release of myip — a fast, zero-dependency CLI tool for looking up your public IP address and local weather from the terminal.

Features

IP geolocation

  • Displays your public IP address by default (single line, no noise)
  • --detail shows a full geolocation table: IP address, IP version, city, region, country, continent, latitude, longitude, ASN, and Cloudflare colo
  • Powered by the Cloudflare Radar API — no API key required

Weather

  • --weather shows current conditions at your detected IP location: temperature, feels like, humidity, weather code, wind speed, wind gusts, wind direction, pressure (MSL), surface pressure, precipitation, rain, showers, snowfall, and day/night status
  • Powered by the Open-Meteo API — no API key required
  • --unit celsius or --unit fahrenheit to override the temperature unit
  • Fahrenheit is auto-detected for US, BS, BZ, KY, LR, PW, FM, and MH

Output formats

  • Default: clean, aligned key/value table with coloured labels
  • --json outputs pretty-printed JSON for --detail, --weather, or both combined

Local cache

  • IP geolocation results are cached at ~/.myip/cache for 30 minutes
  • Cache writes are atomic (write to .tmp then rename)
  • --no-cache bypasses reading from and writing to the cache

Other

  • --version prints the version and exits
  • --help prints usage, all flags, cache details, and examples
  • Version is embedded at build time via -ldflags "-X main.version=$(VERSION)"
  • Zero external dependencies — stdlib only

Build

make build              # builds ./myip at version 0.2.0
make build VERSION=x.y.z

Requirements

  • Go 1.23+