refactor: rename release command
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
b13e3916f6
commit
aeaffb775e
@ -15,7 +15,7 @@ use cuddle_please_misc::{
|
||||
use crate::{
|
||||
config_command::{ConfigCommand, ConfigCommandHandler},
|
||||
gitea_command::{GiteaCommand, GiteaCommandHandler},
|
||||
release_command::ReleaseCommand,
|
||||
release_command::ReleaseCommandHandler,
|
||||
};
|
||||
|
||||
#[derive(Parser)]
|
||||
@ -93,7 +93,7 @@ impl Command {
|
||||
|
||||
match &self.commands {
|
||||
Some(Commands::Release {}) => {
|
||||
ReleaseCommand::new(config, git_client, gitea_client)
|
||||
ReleaseCommandHandler::new(config, git_client, gitea_client)
|
||||
.execute(self.global.dry_run)?;
|
||||
}
|
||||
|
||||
|
@ -8,13 +8,13 @@ use cuddle_please_misc::{
|
||||
NextVersion, VcsClient,
|
||||
};
|
||||
|
||||
pub struct ReleaseCommand {
|
||||
pub struct ReleaseCommandHandler {
|
||||
config: PleaseConfig,
|
||||
git_client: VcsClient,
|
||||
gitea_client: DynRemoteGitClient,
|
||||
}
|
||||
|
||||
impl ReleaseCommand {
|
||||
impl ReleaseCommandHandler {
|
||||
pub fn new(
|
||||
config: PleaseConfig,
|
||||
git_client: VcsClient,
|
||||
|
Loading…
Reference in New Issue
Block a user