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::{
|
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)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user