|
|
|
@ -177,7 +177,10 @@ func runGenFlags(cCtx *cli.Context) error {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if !cCtx.IsSet("altsrc") {
|
|
|
|
|
if cCtx.IsSet("altsrc") {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
genTestTmpl, err := template.New("gen_test").Parse(TestTemplateString)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
@ -195,7 +198,7 @@ func runGenFlags(cCtx *cli.Context) error {
|
|
|
|
|
if _, err := sh(cCtx.Context, cCtx.Path("goimports"), "-w", cCtx.Path("generated-test-output")); err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|