This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4313b00
Showing
13 changed files
with
787 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- name: Install bats | ||
run: | | ||
curl -L -# -o "v0.4.0.tar.gz" https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz | ||
tar -xzf v0.4.0.tar.gz | ||
- name: Link dvm | ||
run: | | ||
npm link | ||
- name: Check Error | ||
run: | | ||
./bats-0.4.0/bin/bats ./test/error/install.bats | ||
./bats-0.4.0/bin/bats ./test/error/now-version.bats | ||
./bats-0.4.0/bin/bats ./test/error/command_not_found.bats | ||
- name: dvm install 0.17.0 | ||
run: | | ||
dvm install 0.17.0 | ||
- name: dvm checkout v0.17.0 | ||
run: | | ||
dvm checkout v0.17.0 | ||
- name: Check Success | ||
run: | | ||
./bats-0.4.0/bin/bats ./test/success/now-version.bats | ||
./bats-0.4.0/bin/bats ./test/success/help.bats | ||
- name: Show dvm usage | ||
run: dvm help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/node_modules | ||
|
||
# log | ||
*.log | ||
|
||
# cache | ||
.npm | ||
|
||
# env | ||
.env | ||
|
||
# swp,swo | ||
*.swp | ||
*.swo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2020, Daiki Ogawa | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[![CI Status](https://github.com/d-ogxwx/dvm/workflows/CI/badge.svg)](https://github.com/d-ogxwx/dvm/actions) | ||
|
||
# Dotty version manager | ||
|
||
<a href="https://dotty.epfl.ch/">Dotty</a> version manager(dvm). Dotty is a next-generation compiler for Scala. | ||
|
||
<img src="demo.gif"> | ||
|
||
## Configuration | ||
|
||
Add the following code to your shell configuration files such as `.bashrc` or `.bash_profile`. | ||
|
||
```bash | ||
$ export PATH=$PATH:$HOME/.dvm/now/dotty/bin | ||
``` | ||
## Installation | ||
|
||
You have already installed npm, you can install via npm. | ||
|
||
```bash | ||
$ npm install -g @d-ogxwx/dvm | ||
``` | ||
|
||
## Usage | ||
|
||
```bash | ||
Usage: dvm [options] [COMMAND] | ||
|
||
Commands: | ||
|
||
dvm install <version> Install a specific dotty version. | ||
dvm install [-i|-interactive] Install a specific dotty version(interactive mode). | ||
dvm now-version Show an currently version on dvm. | ||
dvm now-version [-a|all] Show an currently version and all cached versions on dvm. | ||
dvm checkout <version> Switch to a specific version cached on dvm. | ||
dvm checkout [-i|-interactive] Switch to a specific version cached on dvm(interactive mode). | ||
dvm rm <version> Remove a specific dotty version. | ||
|
||
``` | ||
|
||
|
||
|
||
|
Oops, something went wrong.