Skip to content

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.

RuleReport[]

Rule reports as returned by runOctoGuideRules

string

Formatted string for CLI output

import { cliReporter, runOctoGuideRules } from "octoguide";
const { reports } = await runOctoGuideRules({
entity: "https://github.com/OctoGuide/bot/issues/19",
});
console.log(cliReporter(reports));