refactor cli

This commit is contained in:
Michael Hohn
2025-03-15 17:43:14 -07:00
parent 1fe4abf6e8
commit c2b2d10591

View File

@@ -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 = {