Commit Graph

19 Commits

Author SHA1 Message Date
Alexander Bezzubov
6a5f37e9e2
modules: prepare for v2 release
- update go.mod \w v2
 - update all import paths

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-14 21:28:12 +02:00
Alexander Bezzubov
20c6d2845a
build: gopkg.in -> github.com imports
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-12 11:49:16 +02:00
Alexander
7a6e8ca783
Merge pull request #214 from bzz/fix-cli-accuracy
CLI: sync report logic \w Linguist
2019-04-09 16:32:52 +02:00
Alexander Bezzubov
bdb5603f28
Address code review feedback
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-08 16:07:10 +02:00
Alexander Bezzubov
b6027d6d0c
cli: mode=byte by default + fix file reading
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-04 22:02:30 +02:00
Alexander Bezzubov
ace8af223f
cli: report vendoring for single file
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-04 17:04:16 +02:00
Alexander Bezzubov
c9f1793a78
doc: update godoc and README \w supported features
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-03 18:51:54 +02:00
Alexander Bezzubov
88810fed12
cli: mimic linguist output by default
This includes next main changes:

 - default: print only Programming and Markup types
   as Linguist does
 - `-prog` option replaced with `-all`, to allow for
   previous behavior
 - always use GetLanguage as main source of truth
   that fixes #204 and perf will be restored under #212

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-03 16:21:10 +02:00
Alexander
13d3d66d37
refactoring: remove un-used code, add go doc, fix ci (#199)
Refactoring, consisting of
 - remove unused method `isAuxiliaryLanguage` and `FileCountList`
   in order to reduce public API surfaces (go/java)
 - add GoDoc to public APIs
 - ci: java profile use latest go src
  It also now mimics https://docs.travis-ci.com/user/languages/go/#go-import-path
  for non-go build image, as code relies on internal imports.

TEST PLAN:
 - make test
2019-02-05 22:54:14 +01:00
M. J. Fromberger
8fcadc60dc Remove an unnecessary helper function.
The writeStringLn function repeats what fmt.Fprintln already does.  Since this
package already imports fmt, removing it reduces mass.

Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-01-08 08:46:36 -08:00
Denys Smirnov
03e4a029c2 fix json output for a single file; fixes #159
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-09-28 20:15:07 +03:00
Denys Smirnov
6712d4219f optimize line count and limit maximal file size to read; fixes #101
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-05-06 15:27:35 +03:00
Zachary Romero
35d103b4e4 Add counting mode, and only programming languages flags. (#110)
Signed-off-by: Zachary Romero <zacromero3@gmail.com>
2018-05-04 18:53:18 +03:00
Denys Smirnov
83cc32253e rename cli to cmd to follow go convention
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-04-30 12:59:25 +03:00
Manuel Carmona
d759fb8992 Added languages.go generator 2017-04-04 13:10:35 +02:00
Santiago M. Mola
dc55da2c6c update imports to srcd.works/simple-linguist.v1 (#11) 2016-12-09 10:38:38 +01:00
Santiago M. Mola
9d7d9da790 use gop.kg reference instead of github.com. (#6) 2016-09-09 09:14:36 +02:00
Máximo Cuadros
e0a990e4ea command improvements 2016-07-14 00:38:06 +02:00
Máximo Cuadros
180da1c6df basic command 2016-07-13 19:05:23 +02:00