diff --git a/generate.go b/generate.go index d4269b7..2cb7ea1 100644 --- a/generate.go +++ b/generate.go @@ -1,3 +1,3 @@ package slinguist -//go:generate go run cli/slinguist-generate/main.go +//go:generate go run internal/code-generator/main.go diff --git a/cli/slinguist-generate/assets/languages.go.tmpl b/internal/code-generator/assets/languages.go.tmpl similarity index 100% rename from cli/slinguist-generate/assets/languages.go.tmpl rename to internal/code-generator/assets/languages.go.tmpl diff --git a/cli/slinguist-generate/generator/generator.go b/internal/code-generator/generator/generator.go similarity index 100% rename from cli/slinguist-generate/generator/generator.go rename to internal/code-generator/generator/generator.go diff --git a/cli/slinguist-generate/generator/generator_test.go b/internal/code-generator/generator/generator_test.go similarity index 100% rename from cli/slinguist-generate/generator/generator_test.go rename to internal/code-generator/generator/generator_test.go diff --git a/cli/slinguist-generate/generator/langs.go b/internal/code-generator/generator/langs.go similarity index 100% rename from cli/slinguist-generate/generator/langs.go rename to internal/code-generator/generator/langs.go diff --git a/cli/slinguist-generate/generator/test_files/formated_languages.gold b/internal/code-generator/generator/test_files/formated_languages.gold similarity index 100% rename from cli/slinguist-generate/generator/test_files/formated_languages.gold rename to internal/code-generator/generator/test_files/formated_languages.gold diff --git a/cli/slinguist-generate/generator/test_files/languages.gold b/internal/code-generator/generator/test_files/languages.gold similarity index 100% rename from cli/slinguist-generate/generator/test_files/languages.gold rename to internal/code-generator/generator/test_files/languages.gold diff --git a/cli/slinguist-generate/generator/test_files/languages.test.go.tmpl b/internal/code-generator/generator/test_files/languages.test.go.tmpl similarity index 100% rename from cli/slinguist-generate/generator/test_files/languages.test.go.tmpl rename to internal/code-generator/generator/test_files/languages.test.go.tmpl diff --git a/cli/slinguist-generate/generator/test_files/languages.test.tmpl b/internal/code-generator/generator/test_files/languages.test.tmpl similarity index 100% rename from cli/slinguist-generate/generator/test_files/languages.test.tmpl rename to internal/code-generator/generator/test_files/languages.test.tmpl diff --git a/cli/slinguist-generate/generator/test_files/languages.test.yml b/internal/code-generator/generator/test_files/languages.test.yml similarity index 100% rename from cli/slinguist-generate/generator/test_files/languages.test.yml rename to internal/code-generator/generator/test_files/languages.test.yml diff --git a/cli/slinguist-generate/main.go b/internal/code-generator/main.go similarity index 79% rename from cli/slinguist-generate/main.go rename to internal/code-generator/main.go index 3e6b443..3dd69dc 100644 --- a/cli/slinguist-generate/main.go +++ b/internal/code-generator/main.go @@ -4,18 +4,18 @@ import ( "io/ioutil" "log" - "srcd.works/simple-linguist.v1/cli/slinguist-generate/generator" + "srcd.works/simple-linguist.v1/internal/code-generator/generator" ) const ( languagesYAML = ".linguist/lib/linguist/languages.yml" langFile = "languages.go" - languagesTmplPath = "cli/slinguist-generate/assets/languages.go.tmpl" + languagesTmplPath = "internal/code-generator/assets/languages.go.tmpl" languagesTmpl = "languages.go.tmpl" heuristicsRuby = ".linguist/lib/linguist/heuristics.rb" contentFile = "content.go" - contentTmplPath = "cli/slinguist-generate/assets/content.go.tmpl" + contentTmplPath = "internal/code-generator/assets/content.go.tmpl" contentTmpl = "content.go.tmpl" commitPath = ".git/refs/heads/master"