Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor(cli): simplify and clean up new command option mapping#3102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Nika-HISK wants to merge1 commit intonestjs:master
base:master
Choose a base branch
Loading
fromNika-HISK:refactor/new-command-simplify

Conversation

@Nika-HISK
Copy link

@Nika-HISKNika-HISK commentedJul 25, 2025
edited
Loading

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?

Thenew 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 internalInput[] 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 thenew command handler.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@Nika-HISK

[8]ページ先頭

©2009-2025 Movatter.jp