Skip to content

Commit

Permalink
Fix test and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Nov 19, 2024
1 parent 2fa1e76 commit 59a0ff9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 2 additions & 4 deletions crates/turborepo-lib/src/commands/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,8 @@ pub async fn link(
REMOTE_CACHING_URL
);

if !yes {
if !should_link_remote_cache(base, &repo_root_with_tilde)? {
return Err(Error::NotLinking);
}
if !yes && !should_link_remote_cache(base, &repo_root_with_tilde)? {
return Err(Error::NotLinking);
}

let user_response = api_client
Expand Down
8 changes: 6 additions & 2 deletions turborepo-tests/integration/tests/turbo-help.t
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,18 @@ Test help flag for link command
Do not create or modify .gitignore (default false)
--version

--scope <SCOPE>
The scope, i.e. Vercel team, to which you are linking
--skip-infer
Skip any attempts to infer which version of Turbo the project is configured to use
--target <TARGET>
Specify what should be linked (default "remote cache") [default: remote-cache] [possible values: remote-cache, spaces]
--no-update-notifier
Disable the turbo update notification
-y, --yes
Answer yes to all prompts (default false)
--api <API>
Override the endpoint for API calls
--target <TARGET>
Specify what should be linked (default "remote cache") [default: remote-cache] [possible values: remote-cache, spaces]
--color
Force color usage in the terminal
--cwd <CWD>
Expand Down

0 comments on commit 59a0ff9

Please sign in to comment.