diff --git a/xtask/src/release_runtime.rs b/xtask/src/gitlab.rs similarity index 100% rename from xtask/src/release_runtime.rs rename to xtask/src/gitlab.rs diff --git a/xtask/src/release_runtime/create_asset_link.rs b/xtask/src/gitlab/create_asset_link.rs similarity index 100% rename from xtask/src/release_runtime/create_asset_link.rs rename to xtask/src/gitlab/create_asset_link.rs diff --git a/xtask/src/release_runtime/create_network_release.rs b/xtask/src/gitlab/create_network_release.rs similarity index 100% rename from xtask/src/release_runtime/create_network_release.rs rename to xtask/src/gitlab/create_network_release.rs diff --git a/xtask/src/release_runtime/create_release.rs b/xtask/src/gitlab/create_release.rs similarity index 100% rename from xtask/src/release_runtime/create_release.rs rename to xtask/src/gitlab/create_release.rs diff --git a/xtask/src/release_runtime/get_changes.rs b/xtask/src/gitlab/get_changes.rs similarity index 100% rename from xtask/src/release_runtime/get_changes.rs rename to xtask/src/gitlab/get_changes.rs diff --git a/xtask/src/release_runtime/get_issues.rs b/xtask/src/gitlab/get_issues.rs similarity index 100% rename from xtask/src/release_runtime/get_issues.rs rename to xtask/src/gitlab/get_issues.rs diff --git a/xtask/src/release_runtime/get_release.rs b/xtask/src/gitlab/get_release.rs similarity index 100% rename from xtask/src/release_runtime/get_release.rs rename to xtask/src/gitlab/get_release.rs diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 07dd4e976bf2ea863422021b4c4f7745855cdb0f..df700dff40532189bda0150b98485a7074321376 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -17,7 +17,7 @@ #![feature(let_chains)] mod gen_doc; -mod release_runtime; +mod gitlab; use anyhow::{Context, Result}; use clap::Parser; @@ -104,20 +104,20 @@ async fn main() -> Result<()> { inject_runtime_code(&raw_spec, &runtime) } DuniterXTaskCommand::ReleaseNetwork { network, branch } => { - release_runtime::release_network(network, branch).await + gitlab::release_network(network, branch).await } DuniterXTaskCommand::ReleaseRuntime { name, network, branch, milestone, - } => release_runtime::release_runtime(name, network, branch, milestone).await, - DuniterXTaskCommand::PrintSpec { network } => release_runtime::print_spec(network).await, + } => gitlab::release_runtime(name, network, branch, milestone).await, + DuniterXTaskCommand::PrintSpec { network } => gitlab::print_spec(network).await, DuniterXTaskCommand::CreateAssetLink { tag, asset_name, asset_url, - } => release_runtime::create_asset_link(tag, asset_name, asset_url).await, + } => gitlab::create_asset_link(tag, asset_name, asset_url).await, DuniterXTaskCommand::Test => test(), } }