Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add andrewkroh/gvm #10979

Merged
merged 2 commits into from Mar 22, 2023
Merged

Conversation

ponkio-o
Copy link
Sponsor Contributor

@ponkio-o ponkio-o commented Mar 22, 2023

#10979 andrewkroh/gvm: Go Version Manager (written in Go for cross-platform usability)

$ aqua g -i andrewkroh/gvm

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

$ gvm --help
usage: gvm [<flags>] <command> [<args> ...]

gvm is a Go version manager. gvm installs a Go version and prints the commands to configure your environment to use it. gvm can only install
binary versions of Go from https://storage.googleapis.com/golang. Below are examples for common shells.

  bash:
    eval "$(gvm 1.18.5)"

  batch (windows cmd.exe):
    FOR /f "tokens=*" %i IN ('"gvm.exe" 1.18.5') DO %i

  powershell:
    gvm --format=powershell 1.18.5 | Invoke-Expression

gvm flags can be set via environment variables by setting GVM_<flag>. For example --http-timeout can be set via GVM_HTTP_TIMEOUT=10m.

Optional flags:
  -h, --help                   Show context-sensitive help (also try --help-long and --help-man).
  -d, --debug                  Enable debug logging to stderr.
      --os=OS                  Go binaries target os.
      --arch=ARCH              Go binaries target architecture.
      --home=HOME              GVM home directory.
      --url=URL                Go binaries repository base URL.
      --repository=REPOSITORY  Go upstream git repository.
      --http-timeout=3m        Timeout for HTTP requests.
      --version                Show application version.

Commands:
  help [<command>...]
    Show help.

  use* [<flags>] [<version>]
    prepare go version and print environment variables

  init
    init .gvm and update source cache

  install [<flags>] [<version>]
    install go version if not already installed

  available
    list all installable go versions

  list
    list installed versions

  remove [<versions>...]
    remove a go version

  purge
    remove all but the newest go version

If files such as configuration file are needed, please share them.

Reference

[andrewkroh/gvm](https://github.com/andrewkroh/gvm): Go Version Manager (written in Go for cross-platform usability)
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Mar 22, 2023
@suzuki-shunsuke suzuki-shunsuke added this to the v3.148.0 milestone Mar 22, 2023
@suzuki-shunsuke
Copy link
Member

Thank you always!

@suzuki-shunsuke suzuki-shunsuke merged commit 3738b69 into aquaproj:main Mar 22, 2023
16 checks passed
@ponkio-o ponkio-o deleted the feat/andrewkroh/gvm branch March 22, 2023 10:43
@suzuki-shunsuke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants