Skip to content

ryutoyasugi/gomod-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gomod-tree

Test

Print go mod dependency tree.
This command call go mod graph internally.

Install

$ go install github.com/ryutoyasugi/gomod-tree@latest

Usage

$ gomod-tree
- github.com/ryutoyasugi/gomod-tree
    - github.com/inconshreveable/mousetrap@v1.0.0
    - github.com/spf13/cobra@v1.4.0
        - github.com/cpuguy83/go-md2man/v2@v2.0.1
            - github.com/russross/blackfriday/v2@v2.1.0
        - github.com/inconshreveable/mousetrap@v1.0.0
        - github.com/spf13/pflag@v1.0.5
        - gopkg.in/yaml.v2@v2.4.0
            - gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405
    - github.com/spf13/pflag@v1.0.5

Specify depth (default 3)

$ gomod-tree -d 1
- github.com/ryutoyasugi/gomod-tree
    - github.com/inconshreveable/mousetrap@v1.0.0
    - github.com/spf13/cobra@v1.4.0
    - github.com/spf13/pflag@v1.0.5