go-zero/tools/goctl/feature/feature.go
2020-07-29 17:12:04 +08:00

21 lines
414 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package feature
import (
"fmt"
"github.com/logrusorgru/aurora"
"github.com/urfave/cli"
)
var feature = `
1、新增对rpc错误转换处理
1.1、目前暂时仅处理not found 和 unknown错误
2、增加feature命令支持详细使用请通过命令[goctl -feature]查看
`
func Feature(c *cli.Context) error {
fmt.Println(aurora.Blue("\nFEATURE:"))
fmt.Println(aurora.Blue(feature))
return nil
}