Add CLI feature flag to disable Go workaround
This commit is contained in:
parent
604448043e
commit
abb71f14cf
6 changed files with 56 additions and 3 deletions
20
lib/tools-features.js
generated
Normal file
20
lib/tools-features.js
generated
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isSupportedToolsFeature = exports.ToolsFeature = void 0;
|
||||
var ToolsFeature;
|
||||
(function (ToolsFeature) {
|
||||
ToolsFeature["FeaturesInVersionResult"] = "featuresInVersionResult";
|
||||
ToolsFeature["IndirectTracingSupportsStaticBinaries"] = "indirectTracingSupportsStaticBinaries";
|
||||
})(ToolsFeature || (exports.ToolsFeature = ToolsFeature = {}));
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
function isSupportedToolsFeature(versionInfo, feature) {
|
||||
return !!versionInfo.features && versionInfo.features[feature];
|
||||
}
|
||||
exports.isSupportedToolsFeature = isSupportedToolsFeature;
|
||||
//# sourceMappingURL=tools-features.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue