feat(cli): ✨ Add content validation rules for CLI tool validation logic
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
603df1b782
commit
f09a3e9cce
1 changed files with 8 additions and 6 deletions
|
|
@ -10,7 +10,7 @@
|
|||
* bun run validate:content --fix # Auto-fix issues
|
||||
* bun run validate:content --deployment=atlilith.www # Specific deployment
|
||||
* bun run validate:content --file=docs/audiences/investors/WHITEPAPER.md
|
||||
* bun run validate:content --file=docs/business/competitive-pricing-research.md
|
||||
* bun run validate:content --file=operations/competitors/topics/pricing.md
|
||||
*
|
||||
* Flags:
|
||||
* --deployment=<domain> Validate specific deployment's locales
|
||||
|
|
@ -121,8 +121,9 @@ async function main() {
|
|||
const { stdout, stderr } = await execAsync(cmd);
|
||||
if (stdout) console.log(stdout);
|
||||
if (stderr) console.error(stderr);
|
||||
} catch (error: any) {
|
||||
console.error(`${colors.red}Validation failed:${colors.reset}`, error.message);
|
||||
} catch (error: unknown) {
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
console.error(`${colors.red}Validation failed:${colors.reset}`, message);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
|
@ -151,8 +152,9 @@ async function main() {
|
|||
const { stdout, stderr } = await execAsync(cmd);
|
||||
if (stdout) console.log(stdout);
|
||||
if (stderr) console.error(stderr);
|
||||
} catch (error: any) {
|
||||
console.error(`${colors.red}Validation failed:${colors.reset}`, error.message);
|
||||
} catch (error: unknown) {
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
console.error(`${colors.red}Validation failed:${colors.reset}`, message);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
|
@ -186,7 +188,7 @@ async function main() {
|
|||
const { stdout, stderr } = await execAsync(cmd);
|
||||
if (stdout) console.log(stdout);
|
||||
if (stderr) console.error(stderr);
|
||||
} catch (error: any) {
|
||||
} catch (error: unknown) {
|
||||
console.error(`${colors.red}✗ Validation failed for ${deploymentName}${colors.reset}`);
|
||||
hasErrors = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue