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

fix(task): don't panic with filter on missing task argument #27180

Merged
merged 4 commits into from
Dec 4, 2024

Conversation

marvinhagemeister
Copy link
Contributor

We were panicing when running deno task --filter foo without a task argument.

Fixes #27177

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM. One comment though

);
}

return Ok(0);
Copy link
Member

Choose a reason for hiding this comment

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

Maybe let's extract out this block to a separate function? It would help to explain what it does.

@marvinhagemeister marvinhagemeister merged commit 120b381 into main Dec 4, 2024
17 checks passed
@marvinhagemeister marvinhagemeister deleted the fix-task-filter-panic branch December 4, 2024 12:06
bartlomieju pushed a commit that referenced this pull request Dec 5, 2024
We were panicing when running `deno task --filter foo` without a task
argument.

Fixes #27177
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.

Trying to list tasks for workspace member with --filter panics.
2 participants