piker icon indicating copy to clipboard operation
piker copied to clipboard

We should add tab completion for our cli

Open iamzoltan opened this issue 7 years ago • 6 comments

I will give that a shot after I'm done with the watchlist module and corresponding tests

iamzoltan avatar Mar 27 '18 17:03 iamzoltan

Great idea @Konstantine00!

Here are the docs for accomplishing this with click.

goodboy avatar Mar 27 '18 17:03 goodboy

I'm thinking we might want to try some other frameworks actually that accomplish this better out of the box?

A couple I've found recently:

  • typer which is built on top of click
  • cleo a totally different framework using doc strings; definitely not as terse

goodboy avatar Jun 10 '20 12:06 goodboy

At a quick glance, I think I'd want to use typer. any thoughts on this?

iamzoltan avatar Jun 10 '20 18:06 iamzoltan

@Konstantine00 yeah I definitely want to give it a try (with love for :de:).

goodboy avatar Jun 10 '20 18:06 goodboy

ehhh!

iamzoltan avatar Jun 10 '20 18:06 iamzoltan

been trying out typer in #489 and it's pretty great 🏄🏼

For tab completion i have to dig for how we want to integrate it better but,

  • https://typer.tiangolo.com/typer-cli/
  • https://typer.tiangolo.com/features/#user-friendly-cli-apps

goodboy avatar Mar 27 '23 22:03 goodboy