diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-12T23·26+0000 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2019-12-13T00·39+0000 |
commit | 875628a0978937d708ce9365c9cc2061f39b0bca (patch) | |
tree | 09f167567bc52f62cac38fe474f67462608b9b04 /external/main.go | |
parent | f5e3183de14e73ab6ff0ada0a6d2e9408a5280be (diff) |
feat(external): Switch between packages & programs automatically
Diffstat (limited to 'external/main.go')
-rw-r--r-- | external/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/external/main.go b/external/main.go index aac966172b34..23fd53326ed0 100644 --- a/external/main.go +++ b/external/main.go @@ -34,6 +34,7 @@ type pkg struct { Files []string `json:"files"` LocalDeps [][]string `json:"localDeps"` ForeignDeps []string `json:"foreignDeps"` + IsCommand bool `json:"isCommand"` } // findGoDirs returns a filepath.WalkFunc that identifies all @@ -116,6 +117,7 @@ func analysePackage(root, source, importpath string, stdlib map[string]bool) (pk Files: files, LocalDeps: local, ForeignDeps: foreign, + IsCommand: p.IsCommand(), }, nil } |