znap-cli 0.1.37

Manage your znap workspaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use heck::ToSnekCase;

pub fn template(name: &str) -> String {
    format!(
        r#"use znap::prelude::*;

#[collection]
pub mod {} {{
    use super::*;
}}
"#,
        name.to_snek_case(),
    )
}