feat: with cuddle_please
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-03-30 23:57:51 +01:00
parent 24cfb4ef70
commit a81a26e0cd
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

@ -2,7 +2,7 @@ use cuddle_ci::cuddle_file::CuddleFile;
use cuddle_ci::rust_service::architecture::{Architecture, Os}; use cuddle_ci::rust_service::architecture::{Architecture, Os};
use cuddle_ci::rust_service::extensions::*; use cuddle_ci::rust_service::extensions::*;
use cuddle_ci::rust_service::RustService; use cuddle_ci::rust_service::RustService;
use cuddle_ci::CuddleCI; use cuddle_ci::{cuddle_please, CuddleCI};
#[tokio::main] #[tokio::main]
async fn main() -> eyre::Result<()> { async fn main() -> eyre::Result<()> {
@ -21,9 +21,12 @@ async fn main() -> eyre::Result<()> {
.with_deployment(false) .with_deployment(false)
.to_owned(); .to_owned();
let cuddle_please = &cuddle_please::CuddlePlease::new(client.clone());
CuddleCI::default() CuddleCI::default()
.with_pull_request(service) .with_pull_request(service)
.with_main(service) .with_main(service)
.with_main(cuddle_please)
.execute(std::env::args()) .execute(std::env::args())
.await?; .await?;