Redocly / Redocly/redocly-cli

reports exit code 1 if command run fails

Open
#2,441 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.