@qualweb/cli
Version:
QualWeb evaluator command line interface
18 lines • 842 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListWcagTechniquesCommand = void 0;
const commander_1 = require("commander");
const techniques_json_1 = __importDefault(require("@qualweb/wcag-techniques/lib/techniques.json"));
exports.ListWcagTechniquesCommand = new commander_1.Command('list-wcag-techniques')
.description('Lists all the WCAG techniques known to this program and exits.')
.action(() => {
console.info('WCAG techniques:');
for (const rule of Object.values(techniques_json_1.default)) {
console.info(`${rule.code} (${rule.mapping}) - ${rule.name}`);
}
process.exit(0);
});
//# sourceMappingURL=listWcagTechniques.js.map