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

Support --filter shorthand "-f" on CLI #4417

Closed
danawoodman opened this issue Mar 31, 2023 · 5 comments · Fixed by #4422
Closed

Support --filter shorthand "-f" on CLI #4417

danawoodman opened this issue Mar 31, 2023 · 5 comments · Fixed by #4422
Labels
area: ergonomics Issues and features impacting the developer experience of using turbo needs: team input Filter for core team meetings

Comments

@danawoodman
Copy link

danawoodman commented Mar 31, 2023

Which project is this feature idea for?

Turborepo

Describe the feature you'd like to request

I'm using --filter all the time during development to install/build/test packages in my monorepo but I'm starting to lose my mind having to type out --filter all the time.

Could I humbly request a shorthand of -f is added so I may retain some of my remaining sanity?

Describe the solution you'd like

-f === --filter

Describe alternatives you've considered

Jumping off a bridge

@danawoodman danawoodman added needs: triage New issues get this label. Remove it after triage story labels Mar 31, 2023
@NicholasLYang NicholasLYang added area: turborepo area: ergonomics Issues and features impacting the developer experience of using turbo and removed needs: triage New issues get this label. Remove it after triage labels Mar 31, 2023
@NicholasLYang
Copy link
Contributor

Hi @danawoodman, unfortunately making -f the shorthand for --filter would be a little confusing, as we also have the --force flag and we've noticed that generally -f corresponds to force, like in rm or git. I can certainly commiserate with the extra typing, but perhaps there's some combination of shell history or aliases that could make your life easier? Please don't jump off a bridge!

@NicholasLYang NicholasLYang closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2023
@danawoodman
Copy link
Author

I get the argument, but -f doesn't exist right? So if the docs say -f for filter then is it unclear?

Or what about another flag like -t for filTer

I can't imagine I'm the only one with this annoyance?

I do use shell history but with the variety of calls that only helps so much.

@NicholasLYang
Copy link
Contributor

On second thought, -F might be a reasonable option. I'll reopen this and discuss with the turbo team.

@danawoodman
Copy link
Author

Yay! -F would be swell 🕺

NicholasLYang added a commit that referenced this issue Apr 1, 2023
### Description

Closes #4417.

### Testing Instructions

Added tests for parsing `-F` to CLI parser tests
@danawoodman
Copy link
Author

Thanks @NicholasLYang !! 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ergonomics Issues and features impacting the developer experience of using turbo needs: team input Filter for core team meetings
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants