Skip to content

Commit ced1f8f

Browse files
enhancement: added new path for code in templates
1 parent 64c0bd4 commit ced1f8f

File tree

103 files changed

+17172
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+17172
-10
lines changed

internal/integrations/deepsource/copier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewCopier(project *core.Project) (*Copier, error) {
2626
"GitPlatformUserName": project.GitPlatformUserName,
2727
}
2828

29-
templatesRootPath, err := utils.GetTemplatesRootPath("common-templates", project.Version)
29+
templatesRootPath, err := utils.GetTemplatesRootPath("common-templates/code", project.Version)
3030
if err != nil {
3131
log.Errorf("error while getting the project root path [" + err.Error() + "]")
3232
return nil, err

internal/integrations/license/copier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewCopier(project *core.Project) (*Copier, error) {
2626
"GitPlatformUserName": project.GitPlatformUserName,
2727
}
2828

29-
templatesRootPath, err := utils.GetTemplatesRootPath("common-templates", project.Version)
29+
templatesRootPath, err := utils.GetTemplatesRootPath("common-templates/code", project.Version)
3030
if err != nil {
3131
log.Errorf("error while getting the project root path [" + err.Error() + "]")
3232
return nil, err

internal/integrations/readme/copier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewCopier(project *core.Project) (*Copier, error) {
2626
"GitPlatformUserName": project.GitPlatformUserName,
2727
}
2828

29-
templatesRootPath, err := utils.GetTemplatesRootPath("common-templates", project.Version)
29+
templatesRootPath, err := utils.GetTemplatesRootPath("common-templates/code", project.Version)
3030
if err != nil {
3131
log.Errorf("error while getting the project root path [" + err.Error() + "]")
3232
return nil, err

internal/languages/golang/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// TemplateDirectoryName directory of template files
10-
const TemplateDirectoryName = "compage-template-go"
10+
const TemplateDirectoryName = "compage-template-go/code"
1111
const GoGinServerFramework = "go-gin-server"
1212
const GoGrpcServerFramework = "go-grpc-server"
1313
const CommonFiles = "common-files"

internal/languages/java/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// TemplateDirectoryName directory of template files
10-
const TemplateDirectoryName = "compage-template-java"
10+
const TemplateDirectoryName = "compage-template-java/code"
1111

1212
var LJavaPlayFramework = "java-play-framework"
1313
var LJavaMicronautServer = "java-micronaut-server"

internal/languages/javascript/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// TemplateDirectoryName directory of template files
10-
const TemplateDirectoryName = "compage-template-javascript"
10+
const TemplateDirectoryName = "compage-template-javascript/code"
1111

1212
// LJavaScriptNode language specific struct.
1313
type LJavaScriptNode struct {

internal/languages/python/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// TemplateDirectoryName directory of template files
10-
const TemplateDirectoryName = "compage-template-python"
10+
const TemplateDirectoryName = "compage-template-python/code"
1111

1212
// LPythonNode language specific struct.
1313
type LPythonNode struct {

internal/languages/ruby/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// TemplateDirectoryName directory of template files
10-
const TemplateDirectoryName = "compage-template-ruby"
10+
const TemplateDirectoryName = "compage-template-ruby/code"
1111

1212
// LRubyNode language specific struct.
1313
type LRubyNode struct {

internal/languages/rust/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// TemplateDirectoryName directory of template files
10-
const TemplateDirectoryName = "compage-template-rust"
10+
const TemplateDirectoryName = "compage-template-rust/code"
1111

1212
// LRustNode language specific struct.
1313
type LRustNode struct {

internal/languages/typescript/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// TemplateDirectoryName directory of template files
10-
const TemplateDirectoryName = "compage-template-typescript"
10+
const TemplateDirectoryName = "compage-template-typescript/code"
1111

1212
// LTypeScriptNode language specific struct.
1313
type LTypeScriptNode struct {

0 commit comments

Comments
 (0)