Skip to content

Commit

Permalink
remove goctl config command (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Sep 13, 2021
1 parent 71c0288 commit e837693
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 111 deletions.
6 changes: 2 additions & 4 deletions tools/goctl/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import (
"strings"
)

const (
// DefaultFormat defines a default naming style
DefaultFormat = "gozero"
)
// DefaultFormat defines a default naming style
const DefaultFormat = "gozero"

// Config defines the file naming style
type Config struct {
Expand Down
95 changes: 0 additions & 95 deletions tools/goctl/configgen/genconfig.go

This file was deleted.

12 changes: 0 additions & 12 deletions tools/goctl/goctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ 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/configgen"
"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"
Expand Down Expand Up @@ -569,17 +568,6 @@ var commands = []cli.Command{
},
},
},
{
Name: "config",
Usage: "generate config json",
Flags: []cli.Flag{
cli.StringFlag{
Name: "path, p",
Usage: "the target config go file",
},
},
Action: configgen.GenConfigCommand,
},
{
Name: "template",
Usage: "template operation",
Expand Down

0 comments on commit e837693

Please sign in to comment.