Skip to content

Berkanktk/aviation-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aviation-cli

Offline commercial aircraft specs, airport lookup, and great-circle distance calculator. 165 commercial aircraft and 7,698 airports are embedded in the binary, so no network access or API key is required.

Install

brew install berkanktk/tap/aviation-cli

Usage

aviation aircraft "A350-900"
aviation search 737                 # every matching aircraft as a table
aviation distance CPH JFK
aviation airport CPH
aviation compare "A320neo" "737 MAX 8"
aviation range "787-9" --from CPH   # airports reachable nonstop from CPH
aviation manufacturers              # aircraft count by manufacturer
aviation stats                      # dataset overview: aircraft + airport counts

Aircraft lookups match by model name (e.g. "787-9"), full name (e.g. "BOEING 787-9 Dreamliner"), or ICAO type code (e.g. B789). Ambiguous queries list all matching aircraft instead of guessing, or you can run aviation search <query> for the same matches as a browsable table.

Airport lookups accept IATA (3-letter) or ICAO (4-letter) codes.

compare bolds+greens whichever aircraft wins each numeric row (capacity, range, cruise speed). Output overall is colorized on a real terminal and drops to plain text automatically when piped, redirected, or when NO_COLOR is set.

Data

Datasets live at internal/data/aircraft.json and internal/data/airports.json, embedded at build time via go:embed: no bundled runtime dependency, no network fetch.

Development

go build -o aviation .
go vet ./...
gofmt -l .

About

Commercial aircraft specs, airport lookup, and distance calculator for Homebrew.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages