fix templates
This commit is contained in:
@ -21,7 +21,7 @@ var protoTemplate string
|
||||
//go:embed templates/backend/main.go.tmpl
|
||||
var mainGoTemplate string
|
||||
|
||||
//go:embed templates/proto/include/*
|
||||
//go:embed proto_include/*
|
||||
var protoInclude embed.FS
|
||||
|
||||
func createCmd() *cli.Command {
|
||||
@ -118,7 +118,7 @@ func createCmd() *cli.Command {
|
||||
return fmt.Errorf("error rendering proto file | %w", err)
|
||||
}
|
||||
|
||||
err = os.CopyFS("proto_include", protoInclude)
|
||||
err = os.CopyFS("./", protoInclude)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error copying proto include files | %w", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user