Crates.io | tidepool-gvm |
lib.rs | tidepool-gvm |
version | 0.2.2 |
created_at | 2025-06-28 15:10:11.132104+00 |
updated_at | 2025-08-18 14:29:49.784154+00 |
description | A simple, high-performance Go version management tool written in Rust with clean architecture and minimal dependencies |
homepage | |
repository | https://github.com/Slothtron/tidepool |
max_upload_size | |
id | 1729920 |
size | 285,856 |
A simple, high-performance Go version management tool written in Rust. Designed with simplicity in mind, providing fast and reliable Go version installation, switching, and management across multiple platforms.
# Install from source
git clone https://github.com/Slothtron/tidepool.git
cd tidepool
cargo install --path .
# Basic usage
gvm install 1.21.3 # Install Go version
gvm use 1.21.3 # Switch to Go version
gvm list # List installed versions
gvm list --all # List all available versions
gvm status # Show current version
gvm uninstall 1.21.3 # Uninstall Go version
gvm info 1.21.3 # Show version details
gvm --help # Show all commands
# Clean status display
$ gvm status
[OK] 当前版本: Go 1.23.10
安装路径: C:\Users\User\.gvm\versions\1.23.10
[INFO] Go 环境已配置
[TIP] 使用 'go version' 验证安装
# Simple list display
$ gvm list
> 已安装的 Go 版本
- 1.21.3
* 1.23.10 (当前版本)
[INFO] 总计: 2 个版本
[TIP] 使用 gvm use <版本> 切换版本
Command | Description | Example Usage |
---|---|---|
gvm install <ver> |
Install a specific Go version | gvm install 1.22.1 --force |
gvm use <ver> |
Switch to an installed Go version | gvm use 1.22.1 --global |
gvm uninstall <ver> |
Uninstall a specific Go version | gvm uninstall 1.21.3 |
gvm list |
List installed Go versions | gvm list --all |
gvm status |
Show current Go version and environment status | gvm status --verbose |
gvm info <ver> |
Display detailed information about a specific version | gvm info 1.22.1 |
gvm --help |
Show help for all commands | gvm --help |
gvm --version |
Show GVM version | gvm --version |
Option | Description | Usage |
---|---|---|
-v, --verbose |
Enable verbose output | gvm status --verbose |
-q, --quiet |
Enable quiet mode (errors only) | gvm install 1.21.3 --quiet |
tidepool-gvm/
├── src/ # Source code directory
│ ├── main.rs # CLI entry point
│ ├── lib.rs # Library entry point
│ ├── cli.rs # CLI command parsing and dispatch
│ ├── commands.rs # Command implementations
│ ├── config.rs # Configuration management
│ ├── go.rs # Go version management core
│ ├── downloader.rs # File download functionality
│ ├── symlink.rs # Symbolic link handling
│ ├── platform.rs # Platform detection and adaptation
│ ├── error.rs # Unified error handling
│ ├── ui_flat.rs # Simplified UI system
│ └── progress_flat.rs # Simplified progress system
├── examples/ # Usage examples
│ └── modern_ui_demo.rs # UI demonstration
├── README.md # English documentation
├── README.zh-CN.md # Chinese documentation
├── Cargo.toml # Rust package configuration
├── Cargo.lock # Locked dependency versions
└── rustfmt.toml # Rust formatting configuration
git clone https://github.com/Slothtron/tidepool.git
cd tidepool
# Build the project
cargo build --release
# Run tests
cargo test
# Run with debug logging
RUST_LOG=debug cargo run -- install 1.21.3
# Build for current platform
cargo build --release
# Cross-compile (requires target toolchain)
cargo build --release --target x86_64-unknown-linux-gnu
cargo build --release --target aarch64-apple-darwin
cargo build --release --target x86_64-pc-windows-msvc
This project is licensed under the MIT License. See LICENSE for details.
Contributions are welcome! Please feel free to submit a Pull Request.