feat: with further rust build actions
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -20,6 +20,11 @@ struct ActionSchema<'a> {
|
||||
description: Option<&'a str>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize)]
|
||||
struct ActionsSchema<'a> {
|
||||
actions: Vec<ActionSchema<'a>>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct CuddleActions {
|
||||
actions: BTreeMap<String, Action>,
|
||||
@@ -113,7 +118,7 @@ impl CuddleActions {
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let output = serde_json::to_string_pretty(&schema)?;
|
||||
let output = serde_json::to_string_pretty(&ActionsSchema { actions: schema })?;
|
||||
|
||||
Ok(output)
|
||||
}
|
||||
|
Reference in New Issue
Block a user