Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant authored Nov 3, 2023
1 parent a9838ad commit 708a67d
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ curl -o- https://raw.githubusercontent.com/zcorky/gvm/master/install | bash
wget -qO- https://raw.githubusercontent.com/zcorky/gvm/master/install | bash
```

## Features
* [x] Switch different versions
* [x] List all local installed versions
* [x] List all remote versions
* [x] Show current version
* [x] Remove unused versions
* [x] Local tmp go version with `.gvmrc`
* [x] Exec command with specify version
* [x] Enter new shell with specify version

## Usage

```markdown
Go Version Manager (v1.3.7)
Go Version Manager (v1.5.0)

Go Version Manager is a tool for managing multiple Go versions.

Expand All @@ -29,16 +39,26 @@ Usage:
gvm ls - List the Go versions installed
gvm ls-remote - List all Go versions from remote
gvm current - Show current Go version
gvm exec - Enter new shell with go version for tmp
gvm exec - Exec command with Go version
gvm shell - Enter new shell with Go version
gvm help - Show help

Example:
gvm install v1.18
gvm use v1.18
gvm remove v1.18
gvm install v1.20
gvm use v1.20
gvm remove v1.20
gvm ls
gvm ls-remote
gvm current
gvm exec v1.18 go version
gvm shell v1.18
```

### Local tmp go version with `.gvmrc`

```bash
# write file .gvmrc with specify go version
v1.21
```

## FAQ
Expand Down

0 comments on commit 708a67d

Please sign in to comment.