mps-rs 1.6.2

MPS — plain-text personal productivity CLI (Rust)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::split_args;

#[derive(Debug, Clone)]
pub struct ReminderData {
    pub tags: Vec<String>,
    pub at: Option<String>,
}

impl ReminderData {
    pub fn parse_args(raw: &str) -> Self {
        let p = split_args(raw);
        ReminderData {
            tags: p.tags,
            at: p.attrs.get("at").cloned(),
        }
    }
}