Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
166be0c289
commit
0fc1438a4a
649
Cargo.lock
generated
649
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -91,26 +91,27 @@ impl Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn execute(self, current_dir: Option<&Path>) -> anyhow::Result<()> {
|
pub fn execute(self, current_dir: Option<&Path>) -> anyhow::Result<()> {
|
||||||
match &self.commands {
|
if let Some(c) = &self.commands {
|
||||||
Some(Commands::Release {}) => {
|
match c {
|
||||||
let (config, git_client, gitea_client, actions) = self.get_deps(current_dir)?;
|
Commands::Release {} => {
|
||||||
ReleaseCommandHandler::new(self.ui, config, git_client, gitea_client, actions)
|
let (config, git_client, gitea_client, actions) = self.get_deps(current_dir)?;
|
||||||
.execute(self.global.dry_run)?;
|
ReleaseCommandHandler::new(self.ui, config, git_client, gitea_client, actions)
|
||||||
}
|
.execute(self.global.dry_run)?;
|
||||||
Some(Commands::Config { command }) => {
|
}
|
||||||
let (config, _, _, _) = self.get_deps(current_dir)?;
|
Commands::Config { command } => {
|
||||||
ConfigCommandHandler::new(self.ui, config).execute(command)?;
|
let (config, _, _, _) = self.get_deps(current_dir)?;
|
||||||
}
|
ConfigCommandHandler::new(self.ui, config).execute(command)?;
|
||||||
Some(Commands::Gitea { command }) => {
|
}
|
||||||
let (config, _, gitea_client, _) = self.get_deps(current_dir)?;
|
Commands::Gitea { command } => {
|
||||||
|
let (config, _, gitea_client, _) = self.get_deps(current_dir)?;
|
||||||
|
|
||||||
GiteaCommandHandler::new(self.ui, config, gitea_client)
|
GiteaCommandHandler::new(self.ui, config, gitea_client)
|
||||||
.execute(command, self.global.token.expect("token to be set").deref())?;
|
.execute(command, self.global.token.expect("token to be set").deref())?;
|
||||||
|
}
|
||||||
|
Commands::Doctor {} => {
|
||||||
|
DoctorCommandHandler::new(self.ui).execute()?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Some(Commands::Doctor {}) => {
|
|
||||||
DoctorCommandHandler::new(self.ui).execute()?;
|
|
||||||
}
|
|
||||||
None => {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -77,6 +77,8 @@ impl ChangeLogBuilder {
|
|||||||
commit_id: None,
|
commit_id: None,
|
||||||
timestamp,
|
timestamp,
|
||||||
previous: None,
|
previous: None,
|
||||||
|
message: None,
|
||||||
|
repository: None,
|
||||||
},
|
},
|
||||||
config: self.config,
|
config: self.config,
|
||||||
release_link: self.release_link,
|
release_link: self.release_link,
|
||||||
@ -180,6 +182,7 @@ fn default_commit_parsers() -> Vec<CommitParser> {
|
|||||||
field: None,
|
field: None,
|
||||||
pattern: None,
|
pattern: None,
|
||||||
sha: None,
|
sha: None,
|
||||||
|
footer: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,6 +204,7 @@ fn default_commit_parsers() -> Vec<CommitParser> {
|
|||||||
field: None,
|
field: None,
|
||||||
pattern: None,
|
pattern: None,
|
||||||
sha: None,
|
sha: None,
|
||||||
|
footer: None,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,10 @@ components:
|
|||||||
debian:
|
debian:
|
||||||
dev:
|
dev:
|
||||||
- jq
|
- jq
|
||||||
|
- git
|
||||||
release:
|
release:
|
||||||
- jq
|
- jq
|
||||||
|
- git
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
"mkdocs:new":
|
"mkdocs:new":
|
||||||
|
Loading…
Reference in New Issue
Block a user