gyunyu

Simple RTM app for CLI made with Ruby

Required

  • Ruby ( tested with CRuby 1.9.2 )

  • read permission of RTM API

Install

$ gem install gyunyu

How to use

$ gyunyu
Usage: gyunyu [options]
    -l, --list LIST
    -f, --filter FILTER
    -c, --custom-filter FILTER
    -s, --custom-filter-list
    -d, --field FIELD
    -o, --format FORMAT
$ gyunyu -f 'dueWithin:"1 week"'
list,task_id,name,due
家,227119591,可燃ゴミ,2012-01-10 08:00:00 +0900
家,226594887,可燃ゴミ,2012-01-06 08:00:00 +0900
家,226034564,資源回収ゴミ,2012-01-08 00:00:00 +0900
...

Filter Howto

$ gyunyu -l 仕事 -l 個人
# => (list:仕事 or list:個人)

$ gyunyu -l 仕事 -f due:today
# => (list:仕事) and (due:today)

On 2012-01-05,

$ gyunyu -l 個人 -c today
# => (list:個人) and (dueAfter:2012-01-04T23:59:59Z and dueBefore:2012-01-05T24:00:00Z)

Even if you live in a timezone other than UTC, you get true today’s task list !

Field Howto

$ gyunyu -d name -d due
list,name,due
...

same above

$ gyunyu -d name,due
list,name,due
...

Supported

  • store API token ( and reuse )

  • only ‘export’ command. supported formats are CSV, JSON, YAML. ( default is CSV )

    • CSV format supports summing estimate time

  • custom filter mainly for short hand of localtime

Not Supported

  • Convert Date to (ISO 8601 + UTC) in search filter. Currently search results are out of alignment.

  • Default filter

Contributing to gyunyu

  • Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet

  • Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright © 2011 wtnabe. See LICENSE.txt for further details.