chore: rename sdk

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-10-26 21:35:28 +02:00
parent 938680cb75
commit 6c4a05e43d
7 changed files with 18 additions and 17 deletions

View File

@@ -173,22 +173,23 @@ impl Drop for TempGuard {
}
}
#[derive(Debug, Deserialize)]
#[derive(Debug, Deserialize, Clone)]
struct CuddleActionsSchema {
actions: Vec<CuddleActionSchema>,
}
#[derive(Debug, Deserialize)]
#[derive(Debug, Deserialize, Clone)]
struct CuddleActionSchema {
name: String,
}
impl CuddleActionsSchema {
fn to_executable(self, action_path: &Path) -> anyhow::Result<ExecutableActions> {
fn to_executable(&self, action_path: &Path) -> anyhow::Result<ExecutableActions> {
Ok(ExecutableActions {
actions: self
.actions
.into_iter()
.iter()
.cloned()
.map(|a| {
let name = a.name.clone();
let action_path = action_path.to_string_lossy().to_string();