DhanushNehru / DhanushNehru/lockcheck

Add a --silent flag to suppress all terminal output

Open Beginner friendly
#8 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
JavaScript
Stars
11
Forks
3
Avg merge
43m
Merged PRs (30d)
1

Description

Currently, running `npx @dhanushnehru/lockcheck` prints either a terminal table or a JSON blob. For developers who want to run this in strict CI environments where they only care about the exit code (0 for pass, 1 for fail), it would be great to have a `--silent` flag.

**Acceptance Criteria:**
- Add `--silent` parsing to `bin/lockcheck.js`.
- If `--silent` is passed, do not call `printReport()` or `printJsonReport()`.
- The CLI should still `process.exit(results.exitCode)` properly.
- Document the new flag in the `--help` output and `README.md`.

Contributor guide

Open the contributing guide

Research direction

Start in bin/lockcheck.js by tracing argument parsing, report output, and process.exit(results.exitCode). Check the existing --help output, then update README.md to document the flag. Done means --silent suppresses both report formats while preserving exit codes and help documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.