kbgen 0.1.1

kbgen is a tool to generate Foam knowledge base documents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

use clap::Clap;
use serde::Serialize;

pub(crate) const TEMPLATE_NAME: &str = "article";
pub(crate) const TEMPLATE: &str = "{{> title }}";

/// Create a new note
#[derive(Clap, Debug, Serialize)]
pub struct Note {
    /// The note title
    #[clap(short)]
    pub(crate) title: String,
}