ChatGPT CLI v1.7.3
New Features
- Multiline Input Mode: A new feature that enables multiline input in interactive sessions has been added. Users can toggle this mode via the
multiline
configuration setting, allowing for more complex queries and commands.- Code reference:
cmd/chatgpt/main.go
,types/config.go
- Code reference:
Improvements
-
Interactive Mode Output Customization: Enhanced the
command_prompt
andoutput_prompt
configurations to allow for more personalized interactive session displays.- Code reference:
cmd/chatgpt/main.go
- Code reference:
-
Markdown Rendering Capability: Added a script (
mdrender.sh
) for real-time markdown rendering, enhancing documentation readability in the CLI.- Code reference:
scripts/mdrender.sh
- Code reference:
-
Makefile Enhancements: Introduced a Makefile to automate common development tasks, streamlining test running, binary building, and dependency management.
- Code reference:
Makefile
,README.md
- Code reference:
Bug Fixes
-
Uncommitted Changes Check in Update Scripts: Modified update and build scripts to ensure there are no unstaged changes before running tests or updates, ensuring a clean working state.
- Code reference:
scripts/shipit.sh
,scripts/updatedeps.sh
- Code reference:
-
Corrected Use of Write Functions: Updated several
Write
function calls to handle errors and improve reliability.- Code reference:
integration/helpers_test.go
- Code reference:
Other Changes
-
Removed Deprecated Functions: Various unnecessary helper functions and outdated code logic were removed to clean up the codebase and improve maintainability.
- Code reference:
configmanager/configmanager_test.go
- Code reference:
-
Warnings for Missing Configuration Files: Added a warning message if
config.yaml
is absent whenOPENAI_CONFIG_HOME
is set, helping users to set up their environment correctly.- Code reference:
integration/integration_test.go
- Code reference:
Upgrade Notes
- This release includes several improvements and bug fixes that enhance functionality and user experience.
- To upgrade, you can use Homebrew by executing:
brew upgrade chatgpt-cli
- Alternatively, download the pre-built binaries directly for your operating system from the release page.
With this release, we aim to enhance usability and developer experience while ensuring more robust code practices. Please ensure that your configurations are up to date and take advantage of the new features and improvements.