Giter Site home page Giter Site logo

go-dep-report's Introduction

go-dep-report

Lists the non-internal Go package dependancies imported into a project. It can output in CSV, YAML, and JSON. In addition it attempts to pull in license information (which needs a bit of work).

Installation

go get github.com/andrewpmartinez/go-dep-report

Usage

All code for a project must be fetched. Either via go get, go build, or similar commands. This utility does not fetch source. Package names will be search for using the standard Go lookup mechanisms; which will look for packages in your GOROOT and GOPATH. This functionality is provided by Go's built in package import logic and will work in in projects that use Go Modules and those that don't.

Some simple examples:

go-dep-report ./my-go-project --depth 3 --format csv
go-dep-report github.com/someone/package
  go-dep-report <packageNameOrPath> [flags]
  go-dep-report [command]

Examples:
go-dep-report ./my-project

Available Commands:
  help        Help about any command
  version     Prints version information

Flags:
  -c, --config string       config file if desired (default is ~/.config/.go-dep-report)
  -d, --depth               the depth to resolve dependencies to (0 = no limit)
  -f, --format string       the output format to use (csv, json, yaml)
  -h, --help                help for go-dep-report
  -l, --log-format string   set the log format output (json, text)
  -o, --out-file string     set the file to route output to
  -v, --verbose             whether to increase log output or not

Use "go-dep-report [command] --help" for more information about a command.

Configuration

All flags and options can be specified:

  • in configuration files (least specific)
  • in environment variables
  • on the command line (most specific)

If the same flag/option is specified on multiple levels the most specific level will be used.

Environment variables are the uppercase flag names prefixed with GDR_

Example: GDR_DEPTH

Configuration files YAML with singular properties with the same flag name.

Example:

depth: 2
format: csv

License Report Information

Currently license information uses the first three lines of LICENSE files. If a repository doesn't have a LICENSE file ??? will be used.

go-dep-report's People

Contributors

andrewpmartinez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.