Skip to content

Commit

Permalink
dep:add package dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
scbizu committed May 6, 2018
1 parent 7781e9d commit d81aacf
Show file tree
Hide file tree
Showing 810 changed files with 269,063 additions and 4 deletions.
45 changes: 45 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.2"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Flags:
### e.g.

```shell
❯ mew -r github.com/scbizu/mew -g mew
["github.com/scbizu/mew/cmd" "github.com/scbizu/mew/filter" "github.com/scbizu/mew/linker"]
❯ mew -r github.com/scbizu/mew -g mew -e vendor -e filter -e .git

```
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ func init() {
}
RootCmd.Flags().StringVarP(&repoName, "repo", "r", "", "input repo name")
RootCmd.Flags().StringVarP(&grep, "grep", "g", "", "grep the pkg list")
RootCmd.Flags().StringArrayVarP(&excludeDirs, "ed", "e", []string{}, "exclude the dir")
RootCmd.Flags().StringArrayVarP(&excludeDirs, "ed", "e", []string{"vendor", ".git"}, "exclude the dir")
}
5 changes: 4 additions & 1 deletion linker/linker.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"go/token"
"io/ioutil"
"os"

"github.com/sirupsen/logrus"
)

// Linker defines the link pkg config
Expand Down Expand Up @@ -40,8 +42,9 @@ func (l *Linker) GetAllPkgNames(allowDup bool, excludeDirs []string) (pkgNames [
return nil, fsErr
}
for _, f := range fs {
for _, file := range f.Files {
for fk, file := range f.Files {
for _, s := range file.Imports {
logrus.WithField("file", fk).Infof("Get PKG:%s", s.Path.Value)
pkgNames = append(pkgNames, s.Path.Value)
}
}
Expand Down
13 changes: 13 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/trap_others.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/trap_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions vendor/github.com/inconshreveable/mousetrap/trap_windows_1.4.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/github.com/sirupsen/logrus/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/github.com/sirupsen/logrus/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d81aacf

Please sign in to comment.