gvsn 1.0.1

A fast, cross-platform Go version manager written in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `gvsn default` - alias for `gvsn use`.
//!
//! Provided for users familiar with tools like `nvm` or `rbenv` that use
//! `default` instead of `use` for the same operation.

use crate::config::Config;
use anyhow::Result;

/// Sets the global default Go version.
///
/// Delegates entirely to [`super::use_version::run`].
///
/// # Errors
///
/// See [`super::use_version::run`] for the error conditions.
pub fn run(config: &Config, spec_str: &str) -> Result<()> {
    super::use_version::run(config, spec_str)
}