mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-22 15:22:13 +01:00
allow dead_code
This commit is contained in:
parent
b6186aa901
commit
e2d32ede76
@ -8,6 +8,7 @@ use eyre::Context;
|
|||||||
use platform_info::Uname;
|
use platform_info::Uname;
|
||||||
use tempfile::{tempfile, NamedTempFile};
|
use tempfile::{tempfile, NamedTempFile};
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Platform {
|
pub struct Platform {
|
||||||
pub os: String,
|
pub os: String,
|
||||||
@ -32,12 +33,14 @@ impl Platform {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct TempFile {
|
pub struct TempFile {
|
||||||
prefix: String,
|
prefix: String,
|
||||||
directory: PathBuf,
|
directory: PathBuf,
|
||||||
file: File,
|
file: File,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
impl TempFile {
|
impl TempFile {
|
||||||
pub fn new(prefix: &str, directory: &PathBuf) -> eyre::Result<Self> {
|
pub fn new(prefix: &str, directory: &PathBuf) -> eyre::Result<Self> {
|
||||||
let prefix = prefix.to_string();
|
let prefix = prefix.to_string();
|
||||||
@ -53,16 +56,22 @@ impl TempFile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub type CliVersion = String;
|
pub type CliVersion = String;
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct Downloader {
|
pub struct Downloader {
|
||||||
version: CliVersion,
|
version: CliVersion,
|
||||||
platform: Platform,
|
platform: Platform,
|
||||||
}
|
}
|
||||||
|
#[allow(dead_code)]
|
||||||
const DEFAULT_CLI_HOST: &str = "dl.dagger.io";
|
const DEFAULT_CLI_HOST: &str = "dl.dagger.io";
|
||||||
|
#[allow(dead_code)]
|
||||||
const CLI_BIN_PREFIX: &str = "dagger-";
|
const CLI_BIN_PREFIX: &str = "dagger-";
|
||||||
|
#[allow(dead_code)]
|
||||||
const CLI_BASE_URL: &str = "https://dl.dagger.io/dagger/releases";
|
const CLI_BASE_URL: &str = "https://dl.dagger.io/dagger/releases";
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
impl Downloader {
|
impl Downloader {
|
||||||
pub fn new(version: CliVersion) -> eyre::Result<Self> {
|
pub fn new(version: CliVersion) -> eyre::Result<Self> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
|
Loading…
Reference in New Issue
Block a user