Added all the necessary to do GetLanguageByAlias functionality works

This commit is contained in:
Manuel Carmona
2017-05-04 15:03:54 +02:00
parent 6f3ad6d30d
commit 45314b4903
11 changed files with 864 additions and 8 deletions

View File

@ -35,9 +35,9 @@ const (
documentationTmpl = "documentation.go.tmpl"
// type.go generation
typeFile = "type.go"
typeTmplPath = "internal/code-generator/assets/type.go.tmpl"
typeTmpl = "type.go.tmpl"
typeFile = "types_map.go"
typeTmplPath = "internal/code-generator/assets/types.go.tmpl"
typeTmpl = "types.go.tmpl"
// interpreters_map.go generation
interpretersFile = "interpreters_map.go"
@ -49,6 +49,11 @@ const (
filenamesTmplPath = "internal/code-generator/assets/filenames.go.tmpl"
filenamesTmpl = "filenames.go.tmpl"
// aliases_map.go generation
aliasesFile = "aliases_map.go"
aliasesTmplPath = "internal/code-generator/assets/aliases.go.tmpl"
aliasesTmpl = "aliases.go.tmpl"
commitPath = ".git/refs/heads/master"
)
@ -75,6 +80,7 @@ func main() {
&generatorArgs{languagesYAML, typeFile, typeTmplPath, typeTmpl, commit, generator.Types},
&generatorArgs{languagesYAML, interpretersFile, interpretersTmplPath, interpretersTmpl, commit, generator.Interpreters},
&generatorArgs{languagesYAML, filenamesFile, filenamesTmplPath, filenamesTmpl, commit, generator.Filenames},
&generatorArgs{languagesYAML, aliasesFile, aliasesTmplPath, aliasesTmpl, commit, generator.Aliases},
}
for _, args := range argsList {