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/[email protected]
    - github.com/spf13/[email protected]
        - github.com/cpuguy83/go-md2man/[email protected]
            - github.com/russross/blackfriday/[email protected]
        - github.com/inconshreveable/[email protected]
        - github.com/spf13/[email protected]
        - gopkg.in/[email protected]
            - gopkg.in/[email protected]
    - github.com/spf13/[email protected]

Specify depth (default 3)

$ gomod-tree -d 1
- github.com/ryutoyasugi/gomod-tree
    - github.com/inconshreveable/[email protected]
    - github.com/spf13/[email protected]
    - github.com/spf13/[email protected]