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

feat(link): add --yes and --scope flags to link #9466

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

NicholasLYang
Copy link
Contributor

Description

Adds --yes and --scope flags

Testing Instructions

Added tests for parsing those flags

@NicholasLYang NicholasLYang requested a review from a team as a code owner November 19, 2024 18:44
Copy link

vercel bot commented Nov 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 19, 2024 7:58pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2024 7:58pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2024 7:58pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2024 7:58pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2024 7:58pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2024 7:58pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2024 7:58pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2024 7:58pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Nov 19, 2024 7:58pm

Comment on lines 188 to 189
if !yes {
if !should_link_remote_cache(base, &repo_root_with_tilde)? {
Copy link
Member

Choose a reason for hiding this comment

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

Up to you if flattening is helpful.

Suggested change
if !yes {
if !should_link_remote_cache(base, &repo_root_with_tilde)? {
if !yes && !should_link_remote_cache(base, &repo_root_with_tilde)? {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found that a little too complex for my taste tbh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ugh ok clippy disagrees

@NicholasLYang NicholasLYang merged commit ccf1c2f into main Nov 19, 2024
40 checks passed
@NicholasLYang NicholasLYang deleted the nicholasyang/link-yes branch November 19, 2024 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants