mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
20 lines
593 B
TypeScript
20 lines
593 B
TypeScript
import { VersionInfo } from "./codeql";
|
|
|
|
export enum ToolsFeature {
|
|
IndirectTracingSupportsStaticBinaries = "indirectTracingSupportsStaticBinaries",
|
|
}
|
|
|
|
/**
|
|
* Determines if the given feature is supported by the CLI.
|
|
*
|
|
* @param versionInfo Version information, including features, returned by the CLI.
|
|
* @param feature The feature to check for.
|
|
* @returns True if the feature is supported or false otherwise.
|
|
*/
|
|
export function isSupportedToolsFeature(
|
|
versionInfo: VersionInfo,
|
|
feature: ToolsFeature,
|
|
): boolean {
|
|
return !!versionInfo.features && versionInfo.features[feature];
|
|
}
|