Skip to content

Commit

Permalink
feat: add go version show of cli tools
Browse files Browse the repository at this point in the history
  • Loading branch information
sinlov committed Jul 26, 2023
1 parent d68841e commit 75a1bf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/bridgewwater/temp-golang-cli-fast/utils/pkgJson"
"github.com/bridgewwater/temp-golang-cli-fast/utils/urfave_cli"
"github.com/urfave/cli/v2"
"runtime"
"time"
)

Expand All @@ -22,7 +23,8 @@ func NewCliApp() *cli.App {
app.Description = pkgJson.GetPackageJsonDescription()
year := time.Now().Year()
jsonAuthor := pkgJson.GetPackageJsonAuthor()
app.Copyright = fmt.Sprintf("© %s-%d %s", constant.CopyrightStartYear, year, jsonAuthor.Name)
app.Copyright = fmt.Sprintf("© %s-%d %s by verson: %s",
constant.CopyrightStartYear, year, jsonAuthor.Name, runtime.Version())
author := &cli.Author{
Name: jsonAuthor.Name,
Email: jsonAuthor.Email,
Expand Down

0 comments on commit 75a1bf5

Please sign in to comment.