Lines
100 %
Functions
87.5 %
Branches
use sqlx::types::Uuid;
use supp_macro::command;
use super::{CmdError, CmdResult};
use crate::user::User;
command! {
ListTemplates {
#[required]
user_id: Uuid,
} => {
let templates = User { id: user_id }.list_templates().await?;
Ok(Some(CmdResult::Templates(templates)))
}
#[cfg(test)]
#[path = "template_list_tests.rs"]
mod tests;