-
Notifications
You must be signed in to change notification settings - Fork 285
Description
What is the use case?
When doing python main.py cocoindex show, the result will show without failure if there is only one flow defined in main.py.
However, when the file has multiple flows, I just get an error message like this:
Usage: main.py cocoindex show [OPTIONS] [FLOW_NAME]
Try 'main.py cocoindex show --help' for help.
Error: Multiple flows available, please specify --name
But there is no --name option to use. So to show the specific flow, I first need to do ls and then retype the show command again. A lot of repeated typings happen here!
Describe the solution you'd like
There are some progress going on in #485, which simply shows the available flows in the error message.
But it would be more awesome if the CLI could instead show a scrollable selection menu (like what fzf does) so I can just pick one without retyping the whole command.
Additional context
β€οΈ Contributors, please refer to πContributing Guide.
Unless the PR can be sent immediately (e.g. just a few lines of code), we recommend you to leave a comment on the issue like I'm working on it or Can I work on this issue? to avoid duplicating work. Our Discord server is always open and friendly.