UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

26 lines 1.3 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProjectQueryDefinition = void 0; const project_query_executor_1 = require("./project-query-executor"); const ansi_1 = require("../../../util/ansi"); const time_1 = require("../../../util/time"); const joi_1 = __importDefault(require("joi")); exports.ProjectQueryDefinition = { executor: project_query_executor_1.executeProjectQuery, asciiSummarizer: (formatter, _processed, queryResults, result) => { const out = queryResults; result.push(`Query: ${(0, ansi_1.bold)('project', formatter)} (${(0, time_1.printAsMs)(out['.meta'].timing, 0)})`); result.push(` ╰ Contains ${out.files.length} file${out.files.length === 1 ? '' : 's'}`); for (const file of out.files) { result.push(` ╰ \`${file}\``); } return true; }, schema: joi_1.default.object({ type: joi_1.default.string().valid('project').required().description('The type of the query.'), }).description('The project query provides information on the analyzed project.') }; //# sourceMappingURL=project-query-format.js.map