Permalink
Browse files

suggest simpler -deps flag to list dependencies

This is shorter and simpler.

The flag was added in Go 1.11, in https://golang.org/cl/107776.

Also omit '.' when specifying the current directory, since that is
the default go list behavior when an import path isn't provided.
  • Loading branch information...
dmitshur committed Feb 3, 2019
1 parent c21d3a3 commit f3d0a7fce30ab48f8d980cc8a57e83f62fbbab43
Showing with 4 additions and 4 deletions.
  1. +3 −3 README.md
  2. +1 −1 main.go
@@ -34,7 +34,7 @@ Examples:
gostatus
# Show status of all dependencies (recursive) of package in current dir.
go list -f '{{join .Deps "\n"}}' . | gostatus -stdin -v
go list -deps | gostatus -stdin -v
Legend:
? - Not under version control or unreachable remote
@@ -63,10 +63,10 @@ $ gostatus
$ gostatus import/path
# Show status of all dependencies (recursive) of package in current dir.
$ go list -f '{{join .Deps "\n"}}' . | gostatus -stdin -v
$ go list -deps | gostatus -stdin -v
# Show status of all dependencies (recursive) of specified package.
$ go list -f '{{join .Deps "\n"}}' import/path | gostatus -stdin -v
$ go list -deps import/path | gostatus -stdin -v
```
Sample Output
@@ -35,7 +35,7 @@ Examples:
gostatus
# Show status of all dependencies (recursive) of package in current dir.
go list -f '{{join .Deps "\n"}}' . | gostatus -stdin -v
go list -deps | gostatus -stdin -v
Legend:
? - Not under version control or unreachable remote

0 comments on commit f3d0a7f

Please sign in to comment.