Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabbbit committed Jan 5, 2021
1 parent f20bcb3 commit bca97b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
6 changes: 6 additions & 0 deletions cli/actions/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ func GenApis(ctx *cli.Context) error {
return err
}

// gen api.vars.go
// 生成api包的类型定义文件
varsFile, err := os.Create(filepath.Join(dir, "vars.go"))
if err != nil {
return err
Expand All @@ -48,6 +50,10 @@ func GenApis(ctx *cli.Context) error {
if err = codegen.NewTypesInfo(varsFile, apiFileMerge, "api").GenCode(); err != nil {
return err
}
if err := logFinishAndFmt(filepath.Join(dir, "vars.go")); err != nil {
return err
}

if err := codegen.NewControllerGenner(apiFileMergeCopy, dir, "api").GenCode(); err != nil {
return err
}
Expand Down
20 changes: 0 additions & 20 deletions cli/codegen/types_gen_test.go

This file was deleted.

8 changes: 8 additions & 0 deletions cli/zelusctl_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package main

import (
"testing"
)

func TestAction(t *testing.T) {
}

0 comments on commit bca97b6

Please sign in to comment.