Skip to content

Extend Filters #10

@bponghneng

Description

@bponghneng

Description

The CLI should support additional filters to customize output:

  • --date YYYY-MM-DD - Fetches flight data for the specified date (your existing core functionality).
  • --route "CODE->CODE" - Filters to flights between specific departure and arrival airports (e.g., "DFW->LAX").
  • --airline CODE - Filters to flights operated by a specific airline using IATA/ICAO codes (e.g., "AA", "UA").
  • --airport CODE - Shows all flights departing from or arriving at the specified airport code.
  • --departures-only - When used with --airport, shows only outbound flights from that airport.
  • --arrivals-only - When used with --airport, shows only inbound flights to that airport.
  • --min-delay MINUTES - Filters to flights with delays equal to or greater than the specified minutes.
  • --status STATUS - Filters by flight status: "scheduled", "active", "landed", "cancelled", "incident", "diverted".
  • --export FORMAT - Exports filtered results to file format: "csv", "json", or "xlsx".
  • --limit NUMBER - Limits output to the specified number of flights (useful for large result sets).
  • --sort-by FIELD - Sorts results by "delay", "departure", "arrival", "airline", or "route".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions