refactor: rename release command

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-08-01 17:12:24 +02:00
parent b13e3916f6
commit aeaffb775e
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ use cuddle_please_misc::{
use crate::{ use crate::{
config_command::{ConfigCommand, ConfigCommandHandler}, config_command::{ConfigCommand, ConfigCommandHandler},
gitea_command::{GiteaCommand, GiteaCommandHandler}, gitea_command::{GiteaCommand, GiteaCommandHandler},
release_command::ReleaseCommand, release_command::ReleaseCommandHandler,
}; };
#[derive(Parser)] #[derive(Parser)]
@ -93,7 +93,7 @@ impl Command {
match &self.commands { match &self.commands {
Some(Commands::Release {}) => { Some(Commands::Release {}) => {
ReleaseCommand::new(config, git_client, gitea_client) ReleaseCommandHandler::new(config, git_client, gitea_client)
.execute(self.global.dry_run)?; .execute(self.global.dry_run)?;
} }

View File

@ -8,13 +8,13 @@ use cuddle_please_misc::{
NextVersion, VcsClient, NextVersion, VcsClient,
}; };
pub struct ReleaseCommand { pub struct ReleaseCommandHandler {
config: PleaseConfig, config: PleaseConfig,
git_client: VcsClient, git_client: VcsClient,
gitea_client: DynRemoteGitClient, gitea_client: DynRemoteGitClient,
} }
impl ReleaseCommand { impl ReleaseCommandHandler {
pub fn new( pub fn new(
config: PleaseConfig, config: PleaseConfig,
git_client: VcsClient, git_client: VcsClient,