Skip to content

Commit a52fc71

Browse files
committed
refactor(client-cli): replace usage of prerelease with pre-release
1 parent a13053b commit a52fc71

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

mithril-client-cli/src/commands/tools/snapshot_converter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const GITHUB_ORGANIZATION: &str = "IntersectMBO";
1919
const GITHUB_REPOSITORY: &str = "cardano-node";
2020

2121
const LATEST_DISTRIBUTION_TAG: &str = "latest";
22-
const PRERELEASE_DISTRIBUTION_TAG: &str = "prerelease";
22+
const PRERELEASE_DISTRIBUTION_TAG: &str = "pre-release";
2323

2424
const WORK_DIR: &str = "tmp";
2525
const CARDANO_DISTRIBUTION_DIR: &str = "cardano-node-distribution";
@@ -76,7 +76,7 @@ pub struct SnapshotConverterCommand {
7676

7777
/// Cardano node version of the Mithril signed snapshot.
7878
///
79-
/// `latest` and `prerelease` are also supported to download the latest or prerelease distribution.
79+
/// `latest` and `pre-release` are also supported to download the latest or pre-release distribution.
8080
#[clap(long)]
8181
cardano_node_version: String,
8282

@@ -189,7 +189,7 @@ impl SnapshotConverterCommand {
189189
PRERELEASE_DISTRIBUTION_TAG => github_api_client
190190
.get_prerelease(GITHUB_ORGANIZATION, GITHUB_REPOSITORY)
191191
.await
192-
.with_context(|| "Failed to get prerelease")?,
192+
.with_context(|| "Failed to get pre-release")?,
193193
_ => github_api_client
194194
.get_release_by_tag(GITHUB_ORGANIZATION, GITHUB_REPOSITORY, tag)
195195
.await

mithril-client-cli/src/utils/github_release_retriever/interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub trait GitHubReleaseRetriever {
1919
/// Retrieves the latest release.
2020
async fn get_latest_release(&self, owner: &str, repo: &str) -> MithrilResult<GitHubRelease>;
2121

22-
/// Retrieves the prerelease.
22+
/// Retrieves the pre-release.
2323
async fn get_prerelease(&self, owner: &str, repo: &str) -> MithrilResult<GitHubRelease>;
2424

2525
/// Retrieves all available releases.

mithril-client-cli/src/utils/github_release_retriever/reqwest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl GitHubReleaseRetriever for ReqwestGitHubApiClient {
9191
let prerelease = releases
9292
.into_iter()
9393
.find(|release| release.prerelease)
94-
.ok_or_else(|| anyhow!("No prerelease found"))?;
94+
.ok_or_else(|| anyhow!("No pre-release found"))?;
9595

9696
Ok(prerelease)
9797
}

0 commit comments

Comments
 (0)