Skip to content

feat: update colors and styles a bit#25

Merged
caarlos0 merged 5 commits intomainfrom
update
Jun 17, 2025
Merged

feat: update colors and styles a bit#25
caarlos0 merged 5 commits intomainfrom
update

Conversation

@caarlos0
Copy link
Copy Markdown
Member

  • updated according to figma
  • renamed some stuff and did some refactoring
  • added a throw cmd to the example that always throws a long error

caarlos0 added 2 commits June 16, 2025 16:44
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 requested review from Copilot and meowgorithm June 16, 2025 20:09
@caarlos0 caarlos0 self-assigned this Jun 16, 2025
@caarlos0 caarlos0 added the enhancement New feature or request label Jun 16, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the colors and styles per the new Figma design, refactors some names, and adds a new command that throws a long error to test error handling.

  • Updated help templates and formatting across various testdata files
  • Refactored error and usage styling in help.go
  • Renamed theming types and added a test "throw" command in example/main.go

Reviewed Changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.

File Description
testdata/TestSetup/*/help.golden Updated formatting and spacing of usage, commands, and flags help text
help.go Refactored styling for usage, examples, and error rendering
fang.go Renamed theming variable and adjusted related API
example/main.go Added a new "throw" command for testing long error handling
Comments suppressed due to low confidence (3)

help.go:96

  • The error rendering now uses 'styles.ErrorText' instead of the previous 'styles.ErrorDetails'. Ensure the updated styling is reflected in the documentation and that tests verify the intended error layout.
_, _ = fmt.Fprintln(w, styles.ErrorText.Width(width()).Render(titleFirstWord(err.Error()+".")))

fang.go:24

  • The theming variable has been renamed from '*Theme' to '*ColorScheme'. Make sure that all related documentation and usage examples are updated to maintain consistency in the API design.
theme       *ColorScheme

example/main.go:73

  • The new 'throw' command returns a very long error message for testing purposes. Consider adding a brief comment to clarify its purpose for future maintainers and reviewers.
cmd.AddCommand(&cobra.Command{

@caarlos0 caarlos0 merged commit 906158c into main Jun 17, 2025
18 checks passed
@caarlos0 caarlos0 deleted the update branch June 17, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants