monochromium 0.1.0

A fast, local-first CLI note-taking app for developers
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::commands::definitions::NoteTypes;
use crate::database::UpdateType;

pub fn parse_note_type(note_type: NoteTypes) -> String {
    let note_type_string: String = match note_type {
        NoteTypes::Idea => String::from("idea"),
        NoteTypes::CheckIn => String::from("check in"),
        NoteTypes::Todo => String::from("todo"),
        NoteTypes::Other => String::from("other"),
    };

    note_type_string
}