refactor cli

This commit is contained in:
Michael Hohn
2025-03-15 17:42:28 -07:00
parent efaef8a2cb
commit 1fe4abf6e8

View File

@@ -82,40 +82,18 @@ export interface SourceInfo {
sourceLocationPrefix: string;
}
/**
* The expected output of `codeql resolve queries`.
*/
type ResolvedQueries = string[];
type ResolvedQueries = string[]; // `codeql resolve queries`
type ResolvedTests = string[]; // `codeql resolve tests`
/**
* The expected output of `codeql resolve tests`.
*/
type ResolvedTests = string[];
/**
* The severity of a compilation message for a test message.
*/
export enum CompilationMessageSeverity {
Error = "ERROR",
Warning = "WARNING",
}
/**
* A compilation message for a test message (either an error or a warning).
*/
export interface CompilationMessage {
/**
* The text of the message
*/
message: string;
/**
* The source position associated with the message
*/
position: Position;
/**
* The severity of the message
*/
severity: CompilationMessageSeverity;
message: string; // Text of the message
position: Position; // Source position
severity: CompilationMessageSeverity; // Error or Warning
}
/**