Skip to content

Commit 2db958d

Browse files
author
Murat Mehmet
committed
fix: update logging
1 parent 67523a2 commit 2db958d

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

src/integrate.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,10 @@ export async function integrate(packageName?: string): Promise<void> {
356356
true
357357
);
358358
} else {
359-
logInfo(
359+
logSuccess(
360360
color.inverse(color.bold(color.green(' done '))) +
361-
color.black(color.bold(color.blue(` ${packageName} `))) +
362361
color.green(
363-
`completed ${completedTaskCount} task(s) successfully`
362+
` completed ${completedTaskCount} task(s) successfully`
364363
)
365364
);
366365
}

src/prompter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function logIntro(msg?: string): void {
7272
}
7373

7474
export function logOutro(msg?: string, error?: boolean): void {
75-
outro(color[error ? 'red' : 'cyan'](msg || 'completed integration check'));
75+
outro(color[error ? 'red' : 'cyan'](msg || 'completed integration'));
7676
}
7777

7878
const s = spinner();

src/upgrade.ts

+8-9
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,10 @@ export async function upgrade(): Promise<void> {
390390
true
391391
);
392392
} else {
393-
logInfo(
393+
logSuccess(
394394
color.inverse(color.bold(color.green(' done '))) +
395-
color.black(color.bold(color.blue(` ${packageName} `))) +
396395
color.green(
397-
`completed ${completedTaskCount} task(s) successfully`
396+
` completed ${completedTaskCount} task(s) successfully`
398397
)
399398
);
400399
}
@@ -532,7 +531,12 @@ export async function upgrade(): Promise<void> {
532531
return;
533532
}
534533

535-
// push changes
534+
logSuccess(
535+
color.inverse(color.bold(color.green(' committed '))) +
536+
color.green(` saved changes to branch ${color.bold(branchName)}`)
537+
);
538+
539+
// fetch changes
536540
const { exitCode: didFetchFail } = await runCommand('git fetch', {
537541
silent: false,
538542
progressText: 'fetching changes to current project',
@@ -547,11 +551,6 @@ export async function upgrade(): Promise<void> {
547551
return;
548552
}
549553

550-
logSuccess(
551-
color.inverse(color.bold(color.green(' committed '))) +
552-
color.green(` saved changes to ${color.bold(branchName)}`)
553-
);
554-
555554
startSpinner('cleaning up');
556555
await new Promise(r =>
557556
fs.rm(

0 commit comments

Comments
 (0)