gpt-engineer
gpt-engineer copied to clipboard
refactor(cli): Move sysinfo formatting into its own function
Description
This pull request refactors the --sysinfo command output for better code organization and readability, following the Single Responsibility Principle.
Changes Made
- Moved the output formatting logic from the
main()function directly into theget_system_info()function. - The
get_system_info()function now returns a fully formatted, multi-line string, making it a self-contained utility. - The
if sysinfo:block in themain()function is now simplified to a single, cleanprint()call.
Related Issue
Closes #1194
[!IMPORTANT] Refactors
--sysinfocommand output by moving formatting logic toget_system_info(), simplifyingmain()function.
- Behavior:
- Refactors
--sysinfocommand output inmain()by moving formatting logic toget_system_info().get_system_info()now returns a formatted string with system details.- Simplifies
if sysinfo:block inmain()to a singleprint()call.- Functions:
get_system_info()now includes formatting logic for system information.- Misc:
- Closes issue #1194.
This description was created by
for 425521c4d299f3904c1f438beb2432d8118e115b. You can customize this summary. It will automatically update as commits are pushed.