Skip to content

Commit 81efe50

Browse files
committed
Add spinner to reachability scan
1 parent 4b88093 commit 81efe50

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/commands/scan/scan-reachability.mts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ export async function scanReachability(
99
argv: string[] | readonly string[],
1010
cwd: string,
1111
): Promise<CResult<unknown>> {
12-
return await spawnCoana(
12+
// Lazily access constants.spinner.
13+
const { spinner } = constants
14+
15+
spinner.start()
16+
17+
const result = await spawnCoana(
1318
[
1419
'run',
1520
cwd,
@@ -20,6 +25,10 @@ export async function scanReachability(
2025
'--disable-report-submission',
2126
...argv,
2227
],
23-
{ cwd },
28+
{ cwd, spinner },
2429
)
30+
31+
spinner.stop()
32+
33+
return result
2534
}

0 commit comments

Comments
 (0)