hugovk / norwegianblue

CLI to show end-of-life dates for a number of products.
https://endoflife.date
MIT License
73 stars 4 forks source link

Feature request: Autocomplete after the eol command #125

Open adriens opened 1 year ago

adriens commented 1 year ago

:grey_question: About

While typing eol+TAB it would be very cool to get the existsing products instead of eol | grep X

:ticket: Related content

hugovk commented 1 year ago

To do this, whatever controls the tab completion would need to first make an HTTP request first to the https://endoflife.date/docs/api to fetch the list of products. The response could then be cached for a day like we're doing for the usual product EOL responses.

adriens commented 1 year ago

Yup, that's the idea :+1:

adriens commented 1 year ago

with this endpoint : https://endoflife.date/api/all.json

adriens commented 1 year ago

Hi guys, any chance to get this feature :grey_question: :pray:

hugovk commented 1 year ago

I've never had much luck with autocomplete libraries, but would review a PR for this.

adriens commented 1 year ago

:ok_hand: