taskwarrior-hooks-rust

Crates.iotaskwarrior-hooks-rust
lib.rstaskwarrior-hooks-rust
version0.1.0
sourcesrc
created_at2019-12-29 00:19:57.29167
updated_at2019-12-29 00:19:57.29167
descriptionA collection of executables to be used as taskwarrior hooks.
homepage
repositoryhttps://github.com/mrvandalo/taskwarrior-hooks
max_upload_size
id193100
size52,341
Ingolf Wagner (mrVanDalo)

documentation

README

How to install

to install all binaries in ~/.cargo/bin run.

cargo install --path .

Executables

auto-tagger

Automatic adds tags by parsing the description. The description string will be split in words and the matching must be exact, no regular expressions supported (yet?). You have to give configuration file tag-map.json, here is an example :

[
  {
    "name": "buy",
    "keywords": ["buy" "shopping" "shop" ]
  },
  {
    "name": "bug",
    "keywords": ["fix", "bug"]
  }
]

How to use

on-add

To use for on-add

#!/usr/bin/env bash
~/.cargo/bin/auto-tagger <path/to/tag-map.json>

on-modify

to use for on-modify (just drop the original line)

#!/usr/bin/env bash
read original_line
~/.cargo/bin/auto-tagger <path/to/tag-map.json>

Tests

cargo test

will test everything

Commit count: 24

cargo fmt