diff --git a/alias.go b/alias.go index 96f23ad..78c75e5 100644 --- a/alias.go +++ b/alias.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/classifier.go b/classifier.go index e4792d2..39b6ea7 100644 --- a/classifier.go +++ b/classifier.go @@ -1,4 +1,4 @@ -package slinguist +package enry import ( "math" diff --git a/cli/slinguist/main.go b/cli/enry/main.go similarity index 82% rename from cli/slinguist/main.go rename to cli/enry/main.go index 11cb403..1e3c227 100644 --- a/cli/slinguist/main.go +++ b/cli/enry/main.go @@ -44,8 +44,8 @@ func main() { relativePath = relativePath + "/" } - if slinguist.IsVendor(relativePath) || slinguist.IsDotFile(relativePath) || - slinguist.IsDocumentation(relativePath) || slinguist.IsConfiguration(relativePath) { + if enry.IsVendor(relativePath) || enry.IsDotFile(relativePath) || + enry.IsDocumentation(relativePath) || enry.IsConfiguration(relativePath) { if f.IsDir() { return filepath.SkipDir } @@ -64,8 +64,8 @@ func main() { return nil } - language := slinguist.GetLanguage(filepath.Base(path), content) - if language == slinguist.OtherLanguage { + language := enry.GetLanguage(filepath.Base(path), content) + if language == enry.OtherLanguage { return nil } diff --git a/common.go b/common.go index e2a47c9..a4615e4 100644 --- a/common.go +++ b/common.go @@ -1,4 +1,4 @@ -package slinguist +package enry import ( "math" diff --git a/common_test.go b/common_test.go index 6474d12..3a0b779 100644 --- a/common_test.go +++ b/common_test.go @@ -1,4 +1,4 @@ -package slinguist +package enry import ( "fmt" diff --git a/content.go b/content.go index 9d53f0c..1974528 100644 --- a/content.go +++ b/content.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/documentation.go b/documentation.go index 3fb3b92..765a97e 100644 --- a/documentation.go +++ b/documentation.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/extension.go b/extension.go index f256966..455ec22 100644 --- a/extension.go +++ b/extension.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/filename.go b/filename.go index cc7be99..ac88912 100644 --- a/filename.go +++ b/filename.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/frequencies.go b/frequencies.go index 8d3f403..dd9601a 100644 --- a/frequencies.go +++ b/frequencies.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/generate.go b/generate.go index 32d8592..f11c8ac 100644 --- a/generate.go +++ b/generate.go @@ -1,3 +1,3 @@ -package slinguist +package enry //go:generate make code-generate diff --git a/internal/code-generator/assets/aliases.go.tmpl b/internal/code-generator/assets/aliases.go.tmpl index 550fe40..1e588a6 100644 --- a/internal/code-generator/assets/aliases.go.tmpl +++ b/internal/code-generator/assets/aliases.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/assets/content.go.tmpl b/internal/code-generator/assets/content.go.tmpl index 552811b..30189ea 100644 --- a/internal/code-generator/assets/content.go.tmpl +++ b/internal/code-generator/assets/content.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/assets/documentation.go.tmpl b/internal/code-generator/assets/documentation.go.tmpl index 09a1684..8173cc4 100644 --- a/internal/code-generator/assets/documentation.go.tmpl +++ b/internal/code-generator/assets/documentation.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/assets/extensions.go.tmpl b/internal/code-generator/assets/extensions.go.tmpl index 56f337f..399f9b2 100644 --- a/internal/code-generator/assets/extensions.go.tmpl +++ b/internal/code-generator/assets/extensions.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/assets/filenames.go.tmpl b/internal/code-generator/assets/filenames.go.tmpl index bc09c43..3481f3f 100644 --- a/internal/code-generator/assets/filenames.go.tmpl +++ b/internal/code-generator/assets/filenames.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/assets/frequencies.go.tmpl b/internal/code-generator/assets/frequencies.go.tmpl index 5bf8bcb..c2bda99 100644 --- a/internal/code-generator/assets/frequencies.go.tmpl +++ b/internal/code-generator/assets/frequencies.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/assets/interpreters.go.tmpl b/internal/code-generator/assets/interpreters.go.tmpl index 94233b7..071b9e3 100644 --- a/internal/code-generator/assets/interpreters.go.tmpl +++ b/internal/code-generator/assets/interpreters.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/assets/types.go.tmpl b/internal/code-generator/assets/types.go.tmpl index d38c0c4..b91cb39 100644 --- a/internal/code-generator/assets/types.go.tmpl +++ b/internal/code-generator/assets/types.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/assets/vendor.go.tmpl b/internal/code-generator/assets/vendor.go.tmpl index 1f8579e..97da260 100644 --- a/internal/code-generator/assets/vendor.go.tmpl +++ b/internal/code-generator/assets/vendor.go.tmpl @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/aliases.gold b/internal/code-generator/generator/test_files/aliases.gold index 3d2e01c..11f0961 100644 --- a/internal/code-generator/generator/test_files/aliases.gold +++ b/internal/code-generator/generator/test_files/aliases.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/content.gold b/internal/code-generator/generator/test_files/content.gold index 125d9a7..e0b87d5 100644 --- a/internal/code-generator/generator/test_files/content.gold +++ b/internal/code-generator/generator/test_files/content.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/documentation.gold b/internal/code-generator/generator/test_files/documentation.gold index 71a6d1f..202334f 100644 --- a/internal/code-generator/generator/test_files/documentation.gold +++ b/internal/code-generator/generator/test_files/documentation.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/extensions.gold b/internal/code-generator/generator/test_files/extensions.gold index dc577dc..405de69 100644 --- a/internal/code-generator/generator/test_files/extensions.gold +++ b/internal/code-generator/generator/test_files/extensions.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/filenames.gold b/internal/code-generator/generator/test_files/filenames.gold index 73d6c2f..06d9a8e 100644 --- a/internal/code-generator/generator/test_files/filenames.gold +++ b/internal/code-generator/generator/test_files/filenames.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/frequencies.gold b/internal/code-generator/generator/test_files/frequencies.gold index c9c3b68..294017c 100644 --- a/internal/code-generator/generator/test_files/frequencies.gold +++ b/internal/code-generator/generator/test_files/frequencies.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/interpreters.gold b/internal/code-generator/generator/test_files/interpreters.gold index 1e62519..e18c702 100644 --- a/internal/code-generator/generator/test_files/interpreters.gold +++ b/internal/code-generator/generator/test_files/interpreters.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/types.gold b/internal/code-generator/generator/test_files/types.gold index 735d90f..5636ace 100644 --- a/internal/code-generator/generator/test_files/types.gold +++ b/internal/code-generator/generator/test_files/types.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/internal/code-generator/generator/test_files/vendor.gold b/internal/code-generator/generator/test_files/vendor.gold index c142cf8..feac54e 100644 --- a/internal/code-generator/generator/test_files/vendor.gold +++ b/internal/code-generator/generator/test_files/vendor.gold @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/interpreter.go b/interpreter.go index 651b475..717f711 100644 --- a/interpreter.go +++ b/interpreter.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/modeline.go b/modeline.go index fb6c850..a7a0845 100644 --- a/modeline.go +++ b/modeline.go @@ -1,4 +1,4 @@ -package slinguist +package enry import ( "bytes" diff --git a/shebang.go b/shebang.go index 32382f2..cf335a1 100644 --- a/shebang.go +++ b/shebang.go @@ -1,4 +1,4 @@ -package slinguist +package enry import ( "bufio" diff --git a/type.go b/type.go index 2b7805c..0820146 100644 --- a/type.go +++ b/type.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND diff --git a/utils.go b/utils.go index b0efb00..a82d795 100644 --- a/utils.go +++ b/utils.go @@ -1,4 +1,4 @@ -package slinguist +package enry import ( "bytes" diff --git a/utils_test.go b/utils_test.go index bf3224f..4e72b8f 100644 --- a/utils_test.go +++ b/utils_test.go @@ -1,4 +1,4 @@ -package slinguist +package enry import ( "bytes" diff --git a/vendor.go b/vendor.go index c02ebae..c49d85e 100644 --- a/vendor.go +++ b/vendor.go @@ -1,4 +1,4 @@ -package slinguist +package enry // CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator // THIS FILE SHOULD NOT BE EDITED BY HAND