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 incmd/chatgpt/main.go
andconfig/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
.
- A new
-
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 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.xml
andbin/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
andbin/chatgpt
.
- Removed the
-
Dependency Updates:
- Upgraded
github.com/magiconair/properties
to v1.8.9 to maintain compatibility and security. - Code reference: Changes in
go.mod
andgo.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.