You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nenv/src/lib.rs

17 lines
382 B
Rust

use repository::{config::Config, NodeVersion, Repository};
2 years ago
mod consts;
pub mod error;
pub mod repository;
mod utils;
2 years ago
mod web_api;
use error::Result;
2 years ago
pub async fn install_version(version: NodeVersion) -> Result<()> {
get_repository().await?.install_version(version).await
2 years ago
}
async fn get_repository() -> Result<Repository> {
Repository::init(Config::load().await?).await
}