code generation move to internal/code-generator

This commit is contained in:
Manuel Carmona 2017-04-05 17:49:58 +02:00
parent d759fb8992
commit 665b7475e3
11 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
package slinguist package slinguist
//go:generate go run cli/slinguist-generate/main.go //go:generate go run internal/code-generator/main.go

View File

@ -4,18 +4,18 @@ import (
"io/ioutil" "io/ioutil"
"log" "log"
"srcd.works/simple-linguist.v1/cli/slinguist-generate/generator" "srcd.works/simple-linguist.v1/internal/code-generator/generator"
) )
const ( const (
languagesYAML = ".linguist/lib/linguist/languages.yml" languagesYAML = ".linguist/lib/linguist/languages.yml"
langFile = "languages.go" langFile = "languages.go"
languagesTmplPath = "cli/slinguist-generate/assets/languages.go.tmpl" languagesTmplPath = "internal/code-generator/assets/languages.go.tmpl"
languagesTmpl = "languages.go.tmpl" languagesTmpl = "languages.go.tmpl"
heuristicsRuby = ".linguist/lib/linguist/heuristics.rb" heuristicsRuby = ".linguist/lib/linguist/heuristics.rb"
contentFile = "content.go" contentFile = "content.go"
contentTmplPath = "cli/slinguist-generate/assets/content.go.tmpl" contentTmplPath = "internal/code-generator/assets/content.go.tmpl"
contentTmpl = "content.go.tmpl" contentTmpl = "content.go.tmpl"
commitPath = ".git/refs/heads/master" commitPath = ".git/refs/heads/master"