Skip to content

Conversation

Nika-HISK
Copy link

@Nika-HISK Nika-HISK commented Jul 25, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

The new command contains repetitive logic for parsing and mapping CLI options.
Language validation and CLI option transformation are done manually and imperatively.

Issue Number: N/A

What is the new behavior?

  • Introduces a centralized language normalization map (typescript -> ts, etc.)
  • Dynamically maps CLI flags into internal Input[] format
  • Reduces repetitive .push() calls
  • Improves readability and future extensibility

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

This change does not affect CLI output or logic, only simplifies internal structure of the new command handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant