feat: use derive
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-10-27 12:05:30 +01:00
parent c94f6b72b8
commit 892fdc9420
9 changed files with 161 additions and 4 deletions

View File

@@ -4,6 +4,8 @@ edition = "2021"
version.workspace = true
[dependencies]
cuddle-actions-sdk-derive.workspace = true
anyhow.workspace = true
clap = { workspace = true, features = ["string"] }
serde.workspace = true

View File

@@ -4,6 +4,8 @@ use std::{collections::BTreeMap, ffi::OsString, io::Write};
use serde::Serialize;
pub use cuddle_actions_sdk_derive::Actions;
// Fix design make it so that it works like axum!
type ActionFn = dyn Fn() -> anyhow::Result<()> + 'static;