Code Monkey home page Code Monkey logo

dvm's Introduction

dvm

English | ไธญๆ–‡็ฎ€ไฝ“

Build Status Go Report Card Latest Version 996.icu Repo Size

dvm

dvm is a command-line tool to manage Deno versions.

Focus on the simplest way to manage versions.

Features:

  • Cross-platform support
  • Easy to use
  • No runtime dependencies
  • Zero configuration
  • Fully compatible with installed Deno
Command Description
dvm current Display currently activated version of Deno
dvm ls List installed versions
dvm ls-remote List remote versions available for install
dvm install <version> | latest Download and install specified/latest Deno version
dvm uninstall <version> Uninstall specified Deno version
dvm use <version> Use specified Deno version
dvm unused Unused Deno
dvm exec <version> [commands] Run Deno command on <version>
dvm upgrade [version] Upgrade dvm
dvm destroy Uninstall dvm

Usage

Whether you have installed Deno or not will not affect the use of dvm.

# install
$ dvm install v0.26.0
$ deno -V
deno v0.26.0

# use another version
$ dvm install v0.25.0
$ dvm use v0.25.0
$ deno -V
deno v0.25.0

# uninstall deno
$ dvm uninstall v0.25.0

# for more command
$ dvm --help

Install

  1. Cask(Cross-Platform)

    cask install github.com/axetroy/dvm
  2. Shell (Mac/Linux)

    curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=axetroy/dvm
  3. PowerShell (Windows):

    $r="axetroy/dvm";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex
  4. Github release page

    download the executable file and put the executable file to $PATH

  5. Build and install from source using Golang (All platforms)

    go install github.com/axetroy/dvm/cmd/[email protected]

Upgrade

You can re-download the executable and overwrite the original file.

or run the following command to upgrade

$ dvm upgrade # upgrade to latest
$ dvm upgrade v0.2.0 # Update to specified version

Uninstall

run the following command to uninstall dvm or remove dvm executable file and $HOME/.dvm folder by manual

$ dvm destroy

Related

justjavac/dvm Node.js implement

imbsky/dvm Reason implement

License

The Anti-996 License

dvm's People

Contributors

axetroy avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dvm's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/build.yml
  • actions/checkout v3
  • actions/setup-go v3
  • goreleaser/goreleaser-action v3
  • actions/checkout v3
  • axetroy/setup-whatchanged v1
  • actions/setup-go v3
  • goreleaser/goreleaser-action v3
.github/workflows/lint.yml
  • actions/setup-go v3
  • actions/checkout v3
  • golangci/golangci-lint-action v3
gomod
go.mod
  • go 1.18
  • github.com/AlecAivazis/survey/v2 v2.3.6
  • github.com/Masterminds/semver/v3 v3.2.0
  • github.com/cheggaaa/pb/v3 v3.1.0
  • github.com/fatih/color v1.13.0
  • github.com/pkg/errors v0.9.1
  • github.com/urfave/cli/v2 v2.23.5

  • Check this box to trigger a request for Renovate to run again on this repository

install dvm

Following the steps on README, I did the following to install dvm but unsuccessfully:

  • curl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=axetroy/dvm
  • got error:
    • INFO: file name is not specified, use 'dvm' INFO: if you want to specify the name of the executable, set flag --exe=name

System

OS: Ubuntu 22.04
Kernel: 5.19

[Informative] Differences

Hi ๐Ÿ‘‹,

I would like to know the difference of this repository and this dvm, I'm trying to see which is more active with the community.

I so that this is project has interesting features that the other hasn't.

Thanks

Add completions

It would be nice to be able to run dvm completions bash and get the completions script.

error when wget is not available.

This is a good start for deno version manager.

I am on macOS, I've not installed wget and not plan to install wget too.

bash: line 48: wget: command not found

Please do not assume and use wget. There is curl, and the readme use curl -fsSL https://raw.githubusercontent.com/axetroy/dvm/master/install.sh already.

v1.0.2 does not find installed versions of deno

After installing dvm and installing versions 0.31.0 and 0.30.0 of deno, I am unable find them with dvm. They are listed in the .dvm folder however it appears that dvm itself cannot find the versions. When I do try dvm current I get the 'You haven't used Deno yet' error message.

Using elementaryOS 5.1 Hera (Ubuntu 18.04.3)

publish to npm

Distribute the binary to npm

Because most deno users have nodejs installed

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

overrides .bashrc

my .bashrc file is not executed due to dvm installation creating a .bash_profile,

it should check and include,

if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
fi

Unable to use deno: dvm use fails to set current dvm version

I'm using the latest version v1.3.10, on a Mac M1 with oh-my-zsh as my shell.
I have done dvm install latest which installs v1.18.2
and then do dvm use v1.18.2 which prints Currently using Deno v1.18.2.

However I am unable to run deno -V. Deno is simply not found and running dvm current prints You haven't used Deno yet..

Is there something in the setup that I'm missing? was something supposed to be added to my PATH?

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.