Giter VIP home page Giter VIP logo

velde's Introduction

velde -- delve version switcher

For time-traveling gophers.

Motivation

By go install, we can have just only single dlv. However, dlv of a version can supports some range of go versions, not all go. If you are writing old and new go, managing dlv can be toil.

velde, this command, manages many versions of dlv, install them as needed, and proxies to suitable one for your go!

Install

First, uninstall dlv.

Second, go install.

go install github.com/youta-t/velde

Finally, make symlink to velde as dlv.

ln -s ./velde ~/go/bin/dlv

Use

velde has 2 modes.

dlv Proxy Mode

When velde is invoked as dlv (via symlink), it perform 2 tasks in order.

  1. installs dlv which supports go you using.
  2. hands over tasks to the dlv supports your go.

Task 1 will be skipped if you have suitable dlv for your go.

Installed dlv by velde are in ${VELDE_PATH} (default; ~/.velde).

go sdk detection

go is searched from ${PATH}.

velde invokes go version as a subprocess to know the version of go which is used, and involes go install as a subprocess (with overwriting GOBIN) to install dlv.

velde mode

When velde is invoked as any name but dlv, it perform management functions for your dlv.

There are several subcommands.

  • velde list: list installed dlv by velde
  • velde uninstall: uninstall delve installed by velde
    • Also, you can delete ${VELDE_PATH}/dlv@${VERSION}. It does this.

For each subcommand, dlv's version are in format dlv@v${MAJOR}.${MINOR}.${RELEASE}[-${SUFFIX}].

velde's People

Contributors

youta-t 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.