AuditCommand constructor

AuditCommand()

Implementation

AuditCommand() {
  argParser
    ..addFlag(
      'verbose',
      abbr: 'v',
      help: 'Show full detail for low-risk and maintenance findings.',
    )
    ..addOption(
      'fail-on',
      help: 'Minimum severity that causes a non-zero exit code.',
      allowed: ['critical', 'high', 'medium', 'low', 'info', 'none'],
      defaultsTo: 'high',
    )
    ..addOption(
      'html',
      help: 'Write an HTML report (with charts) to this path.',
      valueHelp: 'audit_report.html',
    )
    ..addFlag(
      'open',
      help: 'Open the generated HTML report in the default browser.',
    );
}