Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/refactor version command #44

Open
mrusme opened this issue Feb 19, 2025 · 1 comment
Open

Fix/refactor version command #44

mrusme opened this issue Feb 19, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mrusme
Copy link
Owner

mrusme commented Feb 19, 2025

The version command is outdated. Goreleaser supports setting the version by using this code:

package main

import "fmt"

var (
    version = "dev"
    commit  = "none"
    date    = "unknown"
)

func main() {
  fmt.Printf("my app %s, commit %s, built at %s", version, commit, date)
}

The dedicated version command is not needed, as Cobra has a Version attribute for the root command that can be used for this.

@mrusme mrusme added the enhancement New feature or request label Feb 19, 2025
@mrusme mrusme self-assigned this Feb 19, 2025
@mrusme
Copy link
Owner Author

mrusme commented Feb 19, 2025

On hold due to #43

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

No branches or pull requests

1 participant