Skip to content

Commit

Permalink
Merge pull request #21 from waldirborbajr/waldirborbajr-patch-3
Browse files Browse the repository at this point in the history
Update version.go
  • Loading branch information
waldirborbajr authored Mar 14, 2024
2 parents ebbe243 + d6dbee4 commit 7165d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmds/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (
"github.com/urfave/cli/v2"
)

func Version(revision string) *cli.Command {
func Version() *cli.Command {

Check warning on line 9 in cmds/version.go

View workflow job for this annotation

GitHub Actions / lint

exported: exported function Version should have comment or be unexported (revive)
return &cli.Command{
Name: "version",
Aliases: []string{"v"},
Usage: "Display glink version",
UseShortOptionHandling: true,
Action: func(cCtx *cli.Context) error {
fmt.Printf("%s v%s rev:%s\n", cCtx.App.Name, cCtx.App.Version, revision)
fmt.Printf("%s v%s rev:%s\n", cCtx.App.Name, cCtx.App.Version)

Check failure on line 16 in cmds/version.go

View workflow job for this annotation

GitHub Actions / lint

printf: fmt.Printf format %s reads arg #3, but call has 2 args (govet)
return nil
},
}
Expand Down

0 comments on commit 7165d6a

Please sign in to comment.