Skip to content

Commit

Permalink
fix(misc): nx view-logs should open the nx-cloud link when connected …
Browse files Browse the repository at this point in the history
…to cloud
  • Loading branch information
FrozenPandaz committed Sep 6, 2023
1 parent 2526967 commit e897b3e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/nx/src/command-line/connect/view-logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ import { runNxSync } from '../../utils/child-process';

export async function viewLogs(): Promise<number> {
const pmc = getPackageManagerCommand();
const cloudUsed = isNxCloudUsed() && false;
const cloudUsed = isNxCloudUsed();
if (cloudUsed) {
output.error({
title: 'Your workspace is already connected to Nx Cloud',
bodyLines: [
`Refer to the output of the last command to find the Nx Cloud link to view the run details.`,
],
});
return 1;
}
if (!cloudUsed) {
const installCloud = await (
await import('enquirer')
Expand Down

0 comments on commit e897b3e

Please sign in to comment.