Skip to content

Commit 008b006

Browse files
committed
add ExtraOptions type for codeql commands
1 parent c5e07eb commit 008b006

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/codeql.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,27 @@ import * as api from './api-client';
1414
import * as defaults from './defaults.json'; // Referenced from codeql-action-sync-tool!
1515
import * as util from './util';
1616

17+
type Options = (string|number|boolean)[];
18+
19+
/**
20+
* Extra command line options for the codeql commands.
21+
*/
22+
interface ExtraOptions {
23+
'*'?: Options;
24+
database?: {
25+
'*'?: Options,
26+
init?: Options,
27+
'trace-command'?: Options,
28+
analyze?: Options,
29+
finalize?: Options
30+
};
31+
resolve?: {
32+
'*'?: Options,
33+
extractor?: Options,
34+
queries?: Options
35+
};
36+
}
37+
1738
export interface CodeQL {
1839
/**
1940
* Get the directory where the CodeQL executable is located.

0 commit comments

Comments
 (0)