reports exit code 1 if command run fails
Open
Nobody has claimed this yet.
Type: Bug
Type: Maintenance
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 228
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 48
Description
Describe the bug
When you run a command, which fails it reports a exit code 1, instead of 2.
To Reproduce
Expected behavior
Should report exit code 2.
Logs
OpenAPI description
Redocly version(s)
2.12.1
Node.js version(s)
v22
OS, environment
MacOS
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or specific command is identified in the issue. Reproduce the failure with a representative CLI command, trace its failure exit-code handling, and verify that a failed command exits with code 2.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100