Skip to content

Conversation

@lemorage
Copy link
Contributor

Closes #512.

Changes

Assuming we have defined two flows in the main.py.

Before this PR:

(cocoindex)$  uv run cocoindex show main.py
Usage: cocoindex show [OPTIONS] APP_FLOW_SPECIFIER
Try 'cocoindex show --help' for help.

Error: Multiple flows available, please specify which flow to target by appending :FlowName to the APP_TARGET.
Available: CodeEmbedding, TextEmbedding

After this PR (use up/down keys to navigate in the menu):

(cocoindex)$  uv run cocoindex show main.py
╭───────────────╮
│ Select a Flow │
╰───────────────╯
> CodeEmbedding
  TextEmbedding

Copy link
Member

@badmonster0 badmonster0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!!

@badmonster0 badmonster0 merged commit f2fbd12 into cocoindex-io:main May 25, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Interactive CLI flow selector when multiple flows are available

2 participants