-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Modules #176
Support Modules #176
Conversation
@@ -25,10 +25,11 @@ func ProvideScriptLoader(ctx *grapicmd.Ctx, executor excmd.Executor) module.Scri | |||
return script.NewLoader(ctx.FS, executor, ctx.RootDir.String()) | |||
} | |||
|
|||
func ProvideInitializeProjectUsecase(ctx *grapicmd.Ctx, gexCfg *gex.Config, ui cli.UI, generator module.Generator) usecase.InitializeProjectUsecase { | |||
func ProvideInitializeProjectUsecase(ctx *grapicmd.Ctx, gexCfg *gex.Config, ui cli.UI, generator module.Generator, excmd excmd.Executor) usecase.InitializeProjectUsecase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[golint] reported by reviewdog 🐶
exported function ProvideInitializeProjectUsecase should have comment or be unexported
funcMap := template.FuncMap{ | ||
"module": func(in string) (string, error) { | ||
if isMod { | ||
return e.getModulePath(ctx, in) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[wraperr] reported by reviewdog 🐶
pkg/protoc/wrapper.go:140:12: return e.getModulePath(ctx, in)
|
||
func (e *wrapperImpl) commands(ctx context.Context, protoPath string) ([][]string, error) { | ||
cmds := make([][]string, 0, len(e.cfg.Plugins)) | ||
relProtoPath, _ := filepath.Rel(e.rootDir.String(), protoPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[errcheck] reported by reviewdog 🐶
relProtoPath, _ := filepath.Rel(e.rootDir.String(), protoPath)
7acb2e8
to
0b7cf5a
Compare
Codecov Report
@@ Coverage Diff @@
## master #176 +/- ##
=========================================
- Coverage 61.67% 61.17% -0.5%
=========================================
Files 39 39
Lines 1328 1378 +50
=========================================
+ Hits 819 843 +24
- Misses 452 474 +22
- Partials 57 61 +4
Continue to review full report at Codecov.
|
#83