Add: add template for notes support
This commit is contained in:
parent
21e08b17ce
commit
ddc8d65169
5 changed files with 70 additions and 1 deletions
16
src/lib.rs
16
src/lib.rs
|
|
@ -2,6 +2,7 @@ mod cli;
|
|||
mod config;
|
||||
mod core;
|
||||
mod misc;
|
||||
mod notes;
|
||||
mod projects;
|
||||
mod templates;
|
||||
mod timer;
|
||||
|
|
@ -12,7 +13,7 @@ use strfmt::strfmt;
|
|||
use std::collections::HashMap;
|
||||
use std::{fs, process};
|
||||
|
||||
use cli::{CLI, Commands, PomodoroAction, ProjectsAction, TemplateAction};
|
||||
use cli::{CLI, Commands, NotesAction, PomodoroAction, ProjectsAction, TemplateAction};
|
||||
use config::{Config, load_config, save_config};
|
||||
use projects::{commits_info, repository_status};
|
||||
use templates::{list_templates, load_template};
|
||||
|
|
@ -243,6 +244,19 @@ fn process_command(mut cfg: Config) {
|
|||
}
|
||||
}
|
||||
},
|
||||
Some(Commands::Notes(notes_command)) => match notes_command.action {
|
||||
NotesAction::Add => {
|
||||
todo!("Add notes!");
|
||||
}
|
||||
NotesAction::Remove => {
|
||||
todo!("Remove notes!");
|
||||
}
|
||||
NotesAction::List => {
|
||||
todo!("List of notes!");
|
||||
|
||||
// let notes = cfg.notes;
|
||||
}
|
||||
},
|
||||
None => {
|
||||
eprintln!("No command provided. Use --help for usage.");
|
||||
process::exit(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue