ChatGPT CLI v1.7.7
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.mdand modifications incmd/chatgpt/main.goandconfig/config.go.
Improvements
-
System Role File Option:
- A new
--role-fileflag 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.
- A new
-
Enhanced ANSI Color Handling:
- Implemented a new utility function
ColorToAnsithat maps color names to ANSI escape codes, improving console color management. - Code reference:
cmd/chatgpt/utils/utils.goadded with corresponding tests incmd/chatgpt/utils/utils_test.go.
- Implemented a new utility function
Bug Fixes
- No specific bug fixes were highlighted in this release.
Other Changes
-
Code Cleanup and Refactoring:
- Removed the
.idea/workspace.xmlandbin/chatgptfiles from the repository, improving overall repository hygiene. - Updated
.gitignoreto ensure proper exclusion of editor-specific files and build artifacts. - Code reference: Modifications in
.gitignoreand file deletions in.idea/workspace.xmlandbin/chatgpt.
- Removed the
-
Dependency Updates:
- Upgraded
github.com/magiconair/propertiesto v1.8.9 to maintain compatibility and security. - Code reference: Changes in
go.modandgo.sum.
- Upgraded
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.