mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
Merge branch 'master' into transport
This commit is contained in:
commit
b555109fbb
@ -1,6 +1,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
"strings"
|
||||
"text/tabwriter"
|
||||
@ -122,7 +123,7 @@ GLOBAL OPTIONS:
|
||||
{{end}}
|
||||
`
|
||||
|
||||
cli.HelpPrinter = func(templ string, data interface{}) {
|
||||
cli.HelpPrinter = func(writer io.Writer, templ string, data interface{}) {
|
||||
w := tabwriter.NewWriter(os.Stdout, 0, 8, 1, '\t', 0)
|
||||
t := template.Must(template.New("help").Parse(templ))
|
||||
err := t.Execute(w, data)
|
||||
|
Loading…
Reference in New Issue
Block a user