Skip to content
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

Add search for modules #257

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Add search for modules #257

merged 1 commit into from
Sep 13, 2024

Conversation

tomasmik
Copy link
Contributor

@tomasmik tomasmik commented Sep 13, 2024

closes: #247

@tomasmik tomasmik merged commit adc7be5 into main Sep 13, 2024
9 checks passed
@tomasmik tomasmik deleted the search-modules branch September 13, 2024 13:23
var modules []module

for {
pageSize := 50
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pageSize := 50
pageSize := maxSearchModulesPageSize

func listModulesTable(ctx *cli.Context) error {
func getSearchModules(cliCtx *cli.Context, cursor string, limit int) (searchModules, error) {
if limit <= 0 || limit > maxSearchModulesPageSize {
return searchModules{}, errors.New("limit must be between 1 and 50")
Copy link
Contributor

Choose a reason for hiding this comment

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

This error message can get out of sync with the values.

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.

Add module search
3 participants