Skip to content

ChatGPT CLI v1.7.7

Latest
Compare
Choose a tag to compare
@kardolus kardolus released this 09 Dec 20:08
· 3 commits to main since this release

New Features

  • Added Command and Output Prompt Colors:
    • Introduced the ability to set colors for the command and output prompts in interactive mode. Supported colors include "red", "green", "blue", "yellow", and "magenta".
    • Code references: Updates in README.md and modifications in cmd/chatgpt/main.go and config/config.go.

Improvements

  • System Role File Option:

    • A new --role-file flag has been added to allow users to set the system role from a specified file, providing greater flexibility in configuring the chat application.
    • Code reference: Modifications in cmd/chatgpt/main.go.
  • Enhanced ANSI Color Handling:

    • Implemented a new utility function ColorToAnsi that maps color names to ANSI escape codes, improving console color management.
    • Code reference: cmd/chatgpt/utils/utils.go added with corresponding tests in cmd/chatgpt/utils/utils_test.go.

Bug Fixes

  • No specific bug fixes were highlighted in this release.

Other Changes

  • Code Cleanup and Refactoring:

    • Removed the .idea/workspace.xml and bin/chatgpt files from the repository, improving overall repository hygiene.
    • Updated .gitignore to ensure proper exclusion of editor-specific files and build artifacts.
    • Code reference: Modifications in .gitignore and file deletions in .idea/workspace.xml and bin/chatgpt.
  • Dependency Updates:

    • Upgraded github.com/magiconair/properties to v1.8.9 to maintain compatibility and security.
    • Code reference: Changes in go.mod and go.sum.

Upgrade Notes

To upgrade to version v1.7.7, you can use one of the following methods:

  • Homebrew: Run the following command in your terminal:

    brew upgrade chatgpt-cli
  • Direct Download: Alternatively, you can download the binaries for your specific operating system directly from the release page.

This release improves customization of the command-line interface by allowing prompt color settings, enhances command options for better usability, and maintains high code quality with essential cleanups and dependency updates.