Add a top-level --quiet / -q flag to the extract command so CI pipelines can run designlang without flooding their build logs.
What
When --quiet is passed:
- The progress spinner (
ora) is suppressed.
- All informational
console.log lines are skipped.
- Only the final summary block (or errors written to
stderr) prints.
- The exit code is unchanged (
0 on success, 1 on error).
Where
bin/design-extract.js. Add the option to the main extract command (and ideally to the other subcommands too: brand, pair, brands).
A clean way: thread an opts.quiet boolean through the action handler and gate spinner.start() plus the console.log calls behind it. spinner = ora({ ... isSilent: opts.quiet }) is the cleanest path.
Acceptance
npx designlang stripe.com --quiet prints nothing on success.
npx designlang stripe.com -q does the same.
- Errors still go to
stderr and the exit code still reflects success/failure.
- An invalid URL still prints the error in quiet mode (via
console.error).
Scope
~20 lines across the extract / brand / pair commands. Useful for the CI drift bot use case.
Add a top-level
--quiet/-qflag to the extract command so CI pipelines can rundesignlangwithout flooding their build logs.What
When
--quietis passed:ora) is suppressed.console.loglines are skipped.stderr) prints.0on success,1on error).Where
bin/design-extract.js. Add the option to the main extract command (and ideally to the other subcommands too:brand,pair,brands).A clean way: thread an
opts.quietboolean through the action handler and gatespinner.start()plus theconsole.logcalls behind it.spinner = ora({ ... isSilent: opts.quiet })is the cleanest path.Acceptance
npx designlang stripe.com --quietprints nothing on success.npx designlang stripe.com -qdoes the same.stderrand the exit code still reflects success/failure.console.error).Scope
~20 lines across the extract / brand / pair commands. Useful for the CI drift bot use case.