Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Conversation

@ipv1337
Copy link

@ipv1337 ipv1337 commented Apr 15, 2025

Changes

This PR renames the CLI command from cli-code-agent to cli-code while keeping the PyPI package name as cli-code-agent to maintain backward compatibility with existing installations.

Modified files:

  • Updated project.scripts entry in pyproject.toml
  • Updated command examples in documentation (README.md, docs/install.md, docs/releases.md)
  • Updated CLI help text in main.py

Notes:

  • The config directory was already using .config/cli-code/ so no change was needed there
  • The tests are currently failing as they reference older command names and patterns - these will need to be updated
  • Pre-commit hooks fixed some whitespace and EOF issues that would be good to include in a follow-up PR

Testing:

  • Tests are currently failing and need to be updated to work with the new command name

Screenshot

No visual changes, command line only.

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.

Hello @ipv1337, 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!

Summary of Changes

This pull request renames the CLI command cli-code-agent to cli-code. This change involves updating the command name in the pyproject.toml file, as well as updating all references to the command in the documentation files (README.md and docs/install.md, docs/releases.md) and in the help text within the src/cli_code/main.py file.

Highlights

  • CLI Command Rename: The primary change is renaming the CLI command from cli-code-agent to cli-code.
  • Documentation Updates: All documentation files (README.md, docs/install.md, docs/releases.md) have been updated to reflect the new command name.
  • Code Updates: The pyproject.toml file and the help text in src/cli_code/main.py have been updated to use the new command name.

Changelog

Click here to see the changelog
  • README.md
    • Updated examples to use cli-code instead of cli-code-agent (lines 55, 65, 68, 71).
  • docs/install.md
    • Updated setup examples to use cli-code instead of cli-code-agent (lines 28, 39).
    • Updated usage examples to use cli-code instead of cli-code-agent (lines 50, 53, 56, 57, 64, 67, 75, 78).
    • Updated config file path to ~/.config/cli-code/config.yaml (line 92).
    • Updated verification command to use cli-code instead of cli-code-agent (line 124).
  • docs/releases.md
    • Updated verification command to use cli-code instead of cli-code-agent (line 256).
  • pyproject.toml
    • Renamed the script from cli-code-agent to cli-code (line 56).
  • src/cli_code/main.py
    • Updated help text to use cli-code instead of cli-code-agent (lines 411, 412, 413, 414).
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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 is currently in preview and 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 to provide feedback.

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.


A command's new name,
cli-code rises in fame,
Docs and code align,
A cleaner design,
For coding's delightful game.

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.

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

The pull request renames the CLI command from cli-code-agent to cli-code. The changes appear to be straightforward and consistently applied across the codebase. However, a thorough review is necessary to ensure no instances of the old command remain.

Merge Readiness

The pull request appears to be in good shape for merging, as the changes are relatively simple and consistently applied. However, it's crucial to double-check that all instances of the old command name have been replaced to avoid any confusion or errors. I am unable to approve this pull request, and recommend that others review and approve this code before merging.

@github-actions
Copy link

Code Coverage Report

📊 Current Coverage: 92.50%

Detailed coverage analysis is available in SonarCloud

Coverage Change Details

This shows code coverage for changes in this PR. To improve coverage, consider adding tests for new or modified code.

@github-actions
Copy link

Code Coverage Report

📊 Current Coverage: 92.50%

Detailed coverage analysis is available in SonarCloud

Coverage Change Details

This shows code coverage for changes in this PR. To improve coverage, consider adding tests for new or modified code.

@sonarqubecloud
Copy link

@ipv1337 ipv1337 merged commit de30b21 into main Apr 15, 2025
3 checks passed
@ipv1337 ipv1337 deleted the feature/rename-command branch April 15, 2025 19:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants