File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,38 @@ go list -u -m -json all | go-mod-outdated -direct
7171If you want to see only the direct depedencies that have updates run
7272
7373```
74- go list -u -m -json all | go-mod-outdated -update -direct
74+ go list -u -m -json all | go-mod-outdated -update -direct
7575```
7676
77+ ### Help
78+
79+ In order to see details about the usage of the command use the ** -h** or ** -help** flag
80+
81+ ```
82+ $ go-mod-outdated -help
83+
84+ Usage of go-mod-outdated:
85+ -direct
86+ List only direct modules
87+ -update
88+ List only modules with updates
89+ ```
90+
91+ ### Shortcut
92+
93+ If ** go list -u -m -json all | go-mod-outdated -update -direct** seems too difficult to use or remember you can create
94+ a shortcut using an alias. In linux try one of the following:
95+
96+ ```
97+ alias gmo="go list -u -m -json all | go-mod-outdated"
98+
99+ alias gmod="go list -u -m -json all | go-mod-outdated -direct"
100+
101+ alias gmou="go list -u -m -json all | go-mod-outdated -update"
102+
103+ alias gmodu="go list -u -m -json all | go-mod-outdated -direct -update"
104+ ```
105+
77106## Real Example
78107
79108The following example is based on Hugo's go.mod (v0.53) (https://raw.githubusercontent.com/gohugoio/hugo/v0.53/go.mod )
You can’t perform that action at this time.
0 commit comments