Skip to content

Conversation

@notnmeyer
Copy link
Owner

@notnmeyer notnmeyer commented Jun 20, 2025

fancy, shiny, closes #53

image

@notnmeyer notnmeyer requested a review from Copilot June 24, 2025 03:31
Copy link
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 integrates the charmbracelet/fang library to handle CLI execution, version output, and manpage generation, while updating related dependencies.

  • Remove custom version command in favor of fang’s built-in version handling
  • Bump cobra to v1.9.1 and add fang plus its indirect dependencies in go.mod
  • Replace rootCmd.Execute() with fang.Execute() in cmd/root.go

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
go.mod Added charmbracelet/fang (v0.1.0), bumped cobra, and pulled in fang’s indirect modules
cmd/version.go Removed vestigial custom version command
cmd/root.go Switched CLI entrypoint to fang.Execute, imported context and fang

version, commit = v, c
err := rootCmd.Execute()

err := fang.Execute(context.TODO(), rootCmd,
Copy link

Copilot AI Jun 24, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using context.Background() instead of context.TODO() for a clearer intent in production code.

Suggested change
err := fang.Execute(context.TODO(), rootCmd,
err := fang.Execute(context.Background(), rootCmd,

Copilot uses AI. Check for mistakes.

require (
github.com/adrg/xdg v0.4.0
github.com/charmbracelet/fang v0.1.0
Copy link

Copilot AI Jun 24, 2025

Choose a reason for hiding this comment

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

After pulling in new dependencies, run go mod tidy to clean up any unused modules and keep the dependency graph minimal.

Copilot uses AI. Check for mistakes.
@notnmeyer notnmeyer merged commit 21c3b93 into main Jun 24, 2025
1 check passed
@notnmeyer notnmeyer deleted the chore/use-fang branch June 24, 2025 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use charmbracelet/fang

2 participants