refactor cli
This commit is contained in:
@@ -96,10 +96,8 @@ export interface CompilationMessage {
|
||||
severity: CompilationMessageSeverity; // Error or Warning
|
||||
}
|
||||
|
||||
/**
|
||||
* Event fired by `codeql test run`.
|
||||
*/
|
||||
export interface TestCompleted {
|
||||
// Event fired by `codeql test run`
|
||||
test: string;
|
||||
pass: boolean;
|
||||
messages: CompilationMessage[];
|
||||
@@ -107,29 +105,23 @@ export interface TestCompleted {
|
||||
evaluationMs: number;
|
||||
expected: string;
|
||||
actual?: string;
|
||||
diff: string[] | undefined;
|
||||
diff?: string[];
|
||||
failureDescription?: string;
|
||||
failureStage?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional arguments for the `bqrsDecode` function
|
||||
*/
|
||||
interface BqrsDecodeOptions {
|
||||
/** How many results to get. */
|
||||
pageSize?: number;
|
||||
/** The 0-based index of the first result to get. */
|
||||
offset?: number;
|
||||
/** The entity names to retrieve from the bqrs file. Default is url, string */
|
||||
entities?: string[];
|
||||
// Optional arguments for `bqrsDecode`
|
||||
pageSize?: number; // Number of results to retrieve
|
||||
offset?: number; // 0-based index of the first result
|
||||
entities?: string[]; // Default: ["url", "string"]
|
||||
}
|
||||
|
||||
type OnLineCallback = (
|
||||
line: string,
|
||||
) => Promise<string | undefined> | string | undefined;
|
||||
|
||||
type VersionChangedListener = (
|
||||
newVersionAndFeatures: VersionAndFeatures | undefined,
|
||||
newVersionAndFeatures?: VersionAndFeatures,
|
||||
) => void;
|
||||
|
||||
type RunOptions = {
|
||||
|
||||
Reference in New Issue
Block a user