UNPKG

@eagleoutice/flowr-dev

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

19 lines 736 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.standardReplOutput = void 0; exports.printUsage = printUsage; const ansi_1 = require("../../../util/text/ansi"); /** * Default repl output that redirects everything to the stdout and stderror channels (linked to `console`). * @see ReplOutput */ exports.standardReplOutput = { formatter: ansi_1.formatter, stdout: console.log, stderr: console.error }; /** Prints the given command's usage example; the reusable way for any command to show how it should be invoked. */ function printUsage(output, command) { output.stderr(`Usage: ${(0, ansi_1.italic)(command.usageExample, output.formatter)}`); } //# sourceMappingURL=repl-main.js.map