-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial catalog implementation #2815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is terrific! I left a bunch of comments.
High level question: do we have some sort of integration test that shows the catalog
command really works? That is, downloads a repo, parses the code, shows the table, etc?
), | ||
Filter: key.NewBinding( | ||
key.WithKeys("/"), | ||
key.WithHelp("/", "filter"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "filter / search"? I think some folks will be looking for the word "search."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, what content is getting indexed? Is it just the README for each module? The module name and folder name? Something else? And is it doing exact matches? Or fuzzy matching? Case sensitive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "filter / search"? I think some folks will be looking for the word "search."
It's better to set only one of them, otherwise /
can be confused with a hotkey
I renamed to "search", I agreed it's clearer.
Also, what content is getting indexed? Is it just the README for each module? The module name and folder name? Something else? And is it doing exact matches? Or fuzzy matching? Case sensitive?
Only the module name is indexed with fuzzy and case-insensitive matching.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roger!
Could you add a follow-up ticket to index the module README as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, created the GH issue #2833.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Let's get this shipped 🎉
Ah, but make sure tests pass before merging! |
Thanks for the review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woot! Ship it!
Description
Add a new CLI command
catalog
that launches the user interface for searching and managing Terraform modules.Fixes #2796.