GithubHelp home page GithubHelp logo

go-showdeps's Introduction

Contributors Forks Stargazers Issues MIT License


go-showdeps

An interactive terminal UI for navigating your Go project's dependencies.
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

go-showdeps is an interactive terminal UI for navigating your Go project's dependencies. It can be configured to highlight and rank packages according to custom rules.

(back to top)

Getting Started

Prerequisites

  • Go 1.16+

Installation

  1. Install using Go
    	go install github.com/grab/go-showdeps@latest

(back to top)

Usage

Demo

Demo

Quickstart

Run go-showdeps from the root of your Go project.

Usage of go-showdeps:
  -c string
        The path of the configuration file (shorthand)
  -config-file string
        The path of the configuration file
  -path-prefix string
        The prefix to strip from package names. Requires StripPath
  -strip-path
        If set, will strip PathPrefix from package names

Environment variables:
  CONFIG string

  STRIP_PATH bool

  PATH_PREFIX string

Configuration

Custom rules can be configured by creating a configuration file in the following locations (in order of priority):

  1. A YAML file specified on the command-line via the -c/--config-file flag.
  2. A .go-showdeps.yml file in the current directory.
  3. $HOME/.go-showdeps.yml

Example configuration file:

---
rules:
  - regex: internal/
    label: Internal package
    color: '#aa0000'
    priority: 9
  - regex: ^github
    label: Package from GitHub
    color: '#007700'
    priority: 1

(back to top)

Go Modules

go-showdeps expects to run with Go modules enabled for best results. However, if you experience slowness in large projects it may be possible to speed it up by setting GO111MODULE=off.

(back to top)

Roadmap

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

If you have a suggestion that would make this project better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Project Link: https://github.com/grab/go-showdeps

(back to top)

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.