Feat goctl bug (#1332)

* Support goctl bug

* fix typo

* format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
This commit is contained in:
anqiansong
2021-12-15 22:43:58 +08:00
committed by GitHub
parent 3d8ad5e4f6
commit 0b17e0e5d9
4 changed files with 126 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ import (
"github.com/tal-tech/go-zero/tools/goctl/api/new"
"github.com/tal-tech/go-zero/tools/goctl/api/tsgen"
"github.com/tal-tech/go-zero/tools/goctl/api/validate"
"github.com/tal-tech/go-zero/tools/goctl/bug"
"github.com/tal-tech/go-zero/tools/goctl/docker"
"github.com/tal-tech/go-zero/tools/goctl/internal/errorx"
"github.com/tal-tech/go-zero/tools/goctl/internal/version"
@@ -34,6 +35,11 @@ import (
const codeFailure = 1
var commands = []cli.Command{
{
Name: "bug",
Usage: "report a bug",
Action: bug.Action,
},
{
Name: "upgrade",
Usage: "upgrade goctl to latest version",