aiwg
Version:
Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo
42 lines • 1.17 kB
JavaScript
/**
* Lint Command Handler
*
* Routes `aiwg lint` to the lint CLI module.
*
* @issue #810
*/
import { handlerResultFromError } from '../errors.js';
/**
* Handler for lint command
*
* Lint AIWG-managed document sets against declarative rule sets.
*
* Usage:
* aiwg lint .aiwg/research/
* aiwg lint .aiwg/research/ --ruleset research
* aiwg lint --list-rulesets
* aiwg lint --list-rules research
* aiwg lint .aiwg/ --format json --ci --fail-on warn
* aiwg lint .aiwg/research/ --dry-run
*/
export const lintHandler = {
id: 'lint',
name: 'Lint',
description: 'Lint AIWG artifacts against declarative rule sets',
category: 'utility',
aliases: ['-lint', '--lint'],
async execute(ctx) {
try {
const { main } = await import('../../lint/cli.js');
await main(ctx.args);
return {
exitCode: Number(process.exitCode) || 0,
};
}
catch (error) {
const result = handlerResultFromError(error);
return { ...result, message: `Lint command failed: ${result.message}` };
}
},
};
//# sourceMappingURL=lint.js.map