gdenv-lib 1.1.0

The best command-line tool to install and switch between multiple versions of Godot.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::github::{GitHubAsset, GitHubRelease};
use anyhow::Result;
use std::path::Path;

pub trait DownloadClient {
    fn godot_releases(
        &self,
        force_refresh: bool,
        partial_fetch: bool,
    ) -> impl Future<Output = Result<Vec<GitHubRelease>>> + Send;

    fn download_asset(
        &self,
        asset: &GitHubAsset,
        output_path: &Path,
    ) -> impl Future<Output = Result<()>> + Send;
}