適用於 deno 的多版本管理工具 dvm 發佈

不知不覺中,deno 已經默默的發佈了 3 個版本了:java

  • 0.1.0
  • 0.1.1
  • 0.1.2

昨晚通宵作了一個 deno 多版本的管理工具: dvm。 github 地址: https://github.com/justjavac/dvmgit

功能基本參考了 nvm。github

安裝

npm install -g dvm

使用

➜  ~  dvm --help

Usage: dvm [options] [command]

Options:

  -v, --version      output the version number
  -d, --debug        Print verbose infos for debug
  -h, --help         output usage information

Commands:

  arch               Show if deno is running in 32 or 64 bit mode
  list               List all installed versions
  install <version>  Install deno <version>
  use [version]      Switch to use the specified version

在 Windows 平臺須要使用管理員權限打開命令行或者 PowerShellnpm

示例

列出全部已安裝版本

➜  ~  dvm list
   0.1.0
*  0.1.1
   0.1.2

前面的星號(*)表示當前正在使用的版本。bash

切換版本

➜  ~  dvm use 0.1.2
now use 0.1.2
➜  ~  dvm use 0.0.2
deno v0.0.2 is not installed. Use `dvm install 0.0.2` to install it first.

目前功能比較簡陋,bug 也很多,歡迎 issue https://github.com/justjavac/dvm工具

相關文章
相關標籤/搜索