list 命令

帮助信息:gopm list -h or gopm help list:

  1. NAME:
  2. list - list all dependencies of current project
  3. USAGE:
  4. command list [command options] [arguments...]
  5. DESCRIPTION:
  6. Command list lsit all dependencies of current Go project
  7. gopm list
  8. Make sure you run this command in the root path of a go project.
  9. OPTIONS:
  10. --tags apply build tags
  11. --test, -t show test imports
  12. --verbose, -v show process details

gopm list

  • 功能:根据当前项目并结合 gopmfile 列出所有依赖和相应的版本。
  • 示例:gopm list

使用示例

下面为 gopm list -v 命令的示例输出:

  1. [GOPM] 14-09-22 20:48:08 [ INFO] Local repository path: /Users/jiahuachen/.gopm/repos
  2. [GOPM] 14-09-22 20:48:08 [ INFO] Indicated GOPATH: /Users/jiahuachen/Applications/Go
  3. Dependency list(20):
  4. -> github.com/Unknwon/cae @ commit:2e70a1351b
  5. -> github.com/Unknwon/com @ commit:2cbcbc6916
  6. -> github.com/Unknwon/goconfig @ commit:0f8d8dc1c0
  7. -> github.com/Unknwon/i18n @ commit:47baeff8d0
  8. -> github.com/Unknwon/macaron
  9. -> github.com/codegangsta/cli @ commit:7381bc4e62
  10. -> github.com/go-sql-driver/mysql @ commit:8111ee3ec3
  11. -> github.com/go-xorm/core @ commit:750aae0fa5
  12. -> github.com/go-xorm/xorm @ commit:2d8b3135b1
  13. -> github.com/gogits/gfm @ commit:40f747a9c0
  14. -> github.com/gogits/oauth2 @ commit:99cbec870a
  15. -> github.com/lib/pq @ commit:b021d0ef20
  16. -> github.com/macaron-contrib/cache @ commit:204d8e5137
  17. -> github.com/macaron-contrib/captcha
  18. -> github.com/macaron-contrib/csrf
  19. -> github.com/macaron-contrib/i18n
  20. -> github.com/macaron-contrib/session
  21. -> github.com/macaron-contrib/toolbox @ commit:57127bcc89
  22. -> github.com/nfnt/resize @ commit:581d15cb53
  23. -> github.com/saintfish/chardet @ commit:3af4cd4741

选项

  • —tags:应用构建 tags。
  • —test, -t:列举出 test 文件的依赖。
  • —verbose, -v:显示详细信息。