doing-taskpaper (0.1.4)
Installation
[registries.forgejo]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add [email protected] --registry forgejoAbout this package
TaskPaper document parser and serializer for the doing CLI
doing-taskpaper
TaskPaper document parser and serializer for the doing CLI.
This crate provides the document model for doing files: sections, entries with timestamps and tags, notes, and the parser/serializer that round-trips the on-disk format. It also handles atomic file I/O for doing files.
Usage
use doing_taskpaper::{Document, Entry, Section, Tags, Note};
// Parse a doing file
let content = std::fs::read_to_string("what_was_i_doing.md").unwrap();
let doc = Document::parse(&content);
for section in doc.sections() {
println!("{}:", section.title());
for entry in section.entries() {
println!(" {} - {}", entry.date().format("%H:%M"), entry.title());
}
}
License
MIT — see LICENSE for details.
Dependencies
| ID | Version |
|---|---|
| chrono | ^0.4 |
| doing-error | ^0.1.1 |
| md5 | ^0.8 |
| regex | ^1 |
| tempfile | ^3 |
| pretty_assertions | ^1 |
Keywords
cli
doing
taskpaper
parser
Details
Assets (1)
Versions (13)
View all
doing-taskpaper-0.1.4.crate
22 KiB