mirror of
https://github.com/thegeeklab/wp-plugin-go.git
synced 2024-11-22 00:20:38 +00:00
fix: print version with newline (#70)
This commit is contained in:
parent
fc2102453c
commit
8ad911886e
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user