cliReporter
cliReporter(
reports):string
Formats a rule report as used by the standalone CLI.
If reports is empty, it will log a happy message. Otherwise it will pretty-print the reports, grouped by rule.
Parameters
Section titled “Parameters”reports
Section titled “reports”Rule reports as returned by runOctoGuideRules
Returns
Section titled “Returns”string
Formatted string for CLI output
Example
Section titled “Example”import { cliReporter, runOctoGuideRules } from "octoguide";
const { reports } = await runOctoGuideRules({ entity: "https://github.com/OctoGuide/bot/issues/19",});
console.log(cliReporter(reports));