0
0
mirror of https://github.com/thegeeklab/wp-plugin-go.git synced 2024-11-22 10:20:39 +00:00

fix: print version with newline (#70)

This commit is contained in:
Robert Kaussow 2024-05-04 15:50:28 +02:00 committed by GitHub
parent fc2102453c
commit 8ad911886e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,7 @@ func New(opt Options) *Plugin {
cli.VersionPrinter = func(c *cli.Context) { cli.VersionPrinter = func(c *cli.Context) {
version := fmt.Sprintf("%s version=%s %s\n", c.App.Name, c.App.Version, opt.VersionMetadata) version := fmt.Sprintf("%s version=%s %s\n", c.App.Name, c.App.Version, opt.VersionMetadata)
fmt.Print(strings.TrimSpace(version)) fmt.Println(strings.TrimSpace(version))
} }
plugin := &Plugin{ plugin := &Plugin{