Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Tips and Tricks  >  Thread
   
 
Command line client to submit todos
 
Vitalie
Posted: 17 January 2009 02:16 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  1
Joined  2009-01-17

Last week I implemented a command line ruby script to post todos to Tracks website using API.

Source code: http://gist.github.com/45537

Save file in your ~/bin/ directory, be sure you have it in PATH. Also you need to set environment variables GTD_TODOS_URL, GTD_LOGIN and GTD_PASSWORD and add some aliases to your shell:

Command line options:
-p [N] - project id, default 1
-c [N] - context_id, default 1
-w [N] - deffer todo for N weeks, default 1
-m [N] - deffer todo for N months, default 1

GTD_TODOS_URL="http://localhost:4000/todos.xml"
GTD_LOGIN="admin"
GTD_PASSWORD="test"
export GTD_TODOS_URL GTD_LOGIN  GTD_PASSWORD

# gtd shell aliases
alias td-bk="gtd -p 2" # breakout
alias td-sys="gtd -p 3" # sys
alias td-ppl="gtd" # people
alias td-personal="gtd -p 6"
# add more 

Example of usage:

$ td-sys -w 2
move servers to ec2
install nagios
fix capistrano deploy 

Use CTRL+D to finish your input. Note: Lines with more then 100 chars will not be submitted

TODO: improvements
* “[blog] write article about Assembla copy space feature” - create a todo with tag blog
* indented lines to be treated as todo notes.

You can use this command to post todos from IRC chats, jabber bots, etc. I used it to import my text files with TODOs

cat TODO.txt | gtd -p 1 -w 1 
Profile
 
   
 
 
‹‹ Migrating from 1.6 to 1.7      Import Feeds....group solution ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.0940 seconds

Atom Feed
RSS 2.0