Skip to content

Conversation

@toothlessdev
Copy link
Owner

📎 Related issues

📦 Scope

  • @patchlogr/core
  • @patchlogr/cli
  • @patchlogr/oas
  • @patchlogr/inspector
  • @patchlogr/types
  • docs, examples
  • tests
  • ci / cd / infra
  • other (아래에 명시)

📌 Summary

  • 각 command 를 src/commands/*.ts 으로 확장가능하도록 리팩토링

⚠️ Impact

  • No Breaking Changes
  • Breaking Change
  • Versioning 영향 있음 (major / minor / patch)
  • 내부 리팩토링만 포함

✅ Checklist

  • 요구사항 명세 충족
  • 테스트 추가 / 수정
  • deterministic output 확인

@gemini-code-assist
Copy link

Summary of Changes

Hello @toothlessdev, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly refactors the internal structure of the @patchlogr/cli package. The primary goal is to enhance the modularity and extensibility of the command-line interface by isolating each command into its own file. This change improves code organization and simplifies the process of adding new commands in the future, without introducing any breaking changes to the CLI's external behavior.

Highlights

  • CLI Structure Refactoring: The core CLI logic has been refactored to separate each command into its own dedicated file within src/commands/. This enhances modularity and extensibility, making it easier to manage and add new commands.
  • Command Encapsulation: The canonicalize and help commands are now defined and implemented in src/commands/canonicalize.ts and src/commands/help.ts respectively, moving away from a monolithic cli.ts.
  • Centralized CLI Creation: A new createCLI.ts file is introduced to initialize the main Commander.js program and dynamically add individual command modules, improving the overall organization.
  • Package Version Integration: The tsconfig.json was updated to enable resolveJsonModule: true, allowing the package.json file to be imported directly to retrieve the package version for the CLI.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

Test Results

1 tests   1 ✅  0s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 4cbc7f9.

♻️ This comment has been updated with latest results.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 각 명령어를 src/commands 아래의 개별 파일로 옮겨 commander CLI 구조를 더 모듈화되고 확장 가능하도록 성공적으로 리팩토링했습니다. 전반적인 구조가 훨씬 깔끔해졌습니다. 액션 핸들러의 타입 불일치에 관한 심각한 문제와 help 명령어 구현에 관한 또 다른 문제를 발견했습니다. 또한 명령어 정의의 모듈성을 향상시키기 위한 제안도 포함했습니다.

@toothlessdev toothlessdev merged commit 476934f into develop Jan 15, 2026
3 checks passed
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.

Refactor commander cli structure

2 participants