@roblarsen/acm-cli
v1.1.0
Published
CLI validator and parser for the Assumptions & Constraints Manifest (ACM) specification
Maintainers
Readme
acm-cli
Command-line linter and governance parser for the Assumptions & Constraints Manifest (ACM v1.1) specification.
Installation
# Global install
npm install -g @roblarsen/acm-cli
# Or run on demand via npx
npx @roblarsen/acm-cli validate --file .acm.mdUsage
Validate a File
acm-cli validate --file ./path/to/ACM.mdValidate a Pull Request Body
acm-cli validate --pr-body "$PR_BODY"Programmatic API
import { parseAndValidateACM, extractACMBlock } from '@roblarsen/acm-cli';
const { content, error } = extractACMBlock(prBodyString);
if (content) {
const result = parseAndValidateACM(content);
console.log(result.isValid, result.frontmatter?.risk_level);
}License
MIT
