Redocly / Redocly/redocly-cli

Add the `--ext` parameter to the `split` command

Open
#1,562 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

c0 p2 split Type: Enhancement
Dominant language
TypeScript
Stars
1.5k
Forks
228
Avg merge
1d 14h
Merged PRs (30d)
48

Description

Is your feature request related to a problem? Please describe.

Please add the --ext parameter to the split command and convert JSON to YAML and vice versa.

The bundle command has that parameter, so if you get a file in JSON format and you want YAML, you have to split it, bundle it with --ext to convert it, then split it again.

Additional context

Front logo Front conversations

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

Start by locating the CLI entry points for the split and bundle commands, then compare how bundle handles --ext. Verify the expected JSON-to-YAML and YAML-to-JSON behavior for split, and check the existing command tests if present. Done means split accepts --ext and performs the same format conversion without requiring an intermediate bundle step.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.