Skip to content

Commit b1f276d

Browse files
committed
Pass args to coana cli
1 parent ea9609f commit b1f276d

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

src/commands/scan/cmd-scan-reach.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ async function run(
7070
return
7171
}
7272

73-
await handleScanReach(cwd, outputKind)
73+
await handleScanReach(argv, cwd, outputKind)
7474
}

src/commands/scan/handle-reach-scan.mts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ import { scanReachability } from './scan-reachability.mts'
33

44
import type { OutputKind } from '../../types.mts'
55

6-
export async function handleScanReach(cwd: string, outputKind: OutputKind) {
7-
const result = await scanReachability(cwd)
6+
export async function handleScanReach(
7+
argv: string[] | readonly string[],
8+
cwd: string,
9+
outputKind: OutputKind,
10+
) {
11+
const result = await scanReachability(argv, cwd)
812

913
await outputScanReach(result, cwd, outputKind)
1014
}

src/commands/scan/scan-reachability.mts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import type { CResult } from '../../types.mts'
66

77
const { DOT_SOCKET_DOT_FACTS_JSON } = constants
88

9-
export async function scanReachability(cwd: string): Promise<CResult<unknown>> {
9+
export async function scanReachability(
10+
argv: string[] | readonly string[],
11+
cwd: string,
12+
): Promise<CResult<unknown>> {
1013
try {
1114
const result = await spawn(
1215
constants.execPath,
@@ -19,9 +22,10 @@ export async function scanReachability(cwd: string): Promise<CResult<unknown>> {
1922
cwd,
2023
'--output-dir',
2124
cwd,
22-
'--disable-report-submission',
2325
'--socket-mode',
2426
DOT_SOCKET_DOT_FACTS_JSON,
27+
'--disable-report-submission',
28+
...argv,
2529
],
2630
{
2731
cwd,

0 commit comments

Comments
 (0)