Crates.io | marktask |
lib.rs | marktask |
version | 0.2.0 |
source | src |
created_at | 2024-02-04 22:20:08.217617 |
updated_at | 2024-02-05 22:18:13.106055 |
description | A CLI tool for parsing and manipulating Markdown tasks. |
homepage | |
repository | https://github.com/ruivieira/marktask |
max_upload_size | |
id | 1126702 |
size | 58,899 |
marktask
is a command-line interface (CLI) application designed for parsing and manipulating Markdown tasks.
It allows users to filter, extract, and transform task information seamlessly within their shell environment.
--overdue
option.--from
and --to
options.cargo build --release
mv target/release/marktask /usr/local/bin
marktask
can be used with pipes and with other commands in a shell environment. Below are some examples to get you started:
marktask < tasks.md # or
cat tasks.md | marktask
cat tasks.md | marktask | grep "Project A"
This command sequence reads tasks from tasks.md
, parses them, and then uses grep
to filter tasks related to "Project A".
For integration with other tools that consume JSON, marktask
can output tasks in JSON format:
cat tasks.md | marktask --json
To exclude overdue tasks from the output, use the --overdue=false
option. By default, all tasks, including overdue ones, are shown:
cat tasks.md | marktask --overdue=false
To include tasks starting from a specific date or from a relative date like one week from today:
cat tasks.md | marktask --from 2024-01-01
cat tasks.md | marktask --from +1w # Tasks starting from one week from today
To include tasks up to a specific date or up to a relative period like two days from now:
cat tasks.md | marktask --to 2024-01-31
cat tasks.md | marktask --to +2d # Tasks up to two days from today
To include tasks within a specific date range or within a relative period:
cat tasks.md | marktask --from 2024-01-01 --to 2024-01-31
cat tasks.md | marktask --from -1w --to +1m # Tasks from last week to one month from today
This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details.