File Import

- Added format identifier code for task 1.4.3, task 1.5.0, todo.sh
  2.0 and CSV.
- Implemented import for type text.
- Implemented util.cpp:slurp function.
- Gathered sample input files for import testing, and later, unit
  tests.
This commit is contained in:
Paul Beckingham
2009-03-26 00:41:15 -04:00
parent db7b2dd9fe
commit 99dc72f26f
8 changed files with 239 additions and 24 deletions

4
src/import/freeform.csv Normal file
View File

@@ -0,0 +1,4 @@
'id','priority','description'
1,H,'this is a test'
2,,'another task'
1 'id' 'priority' 'description'
2 1 H 'this is a test'
3 2 'another task'

3
src/import/line.txt Normal file
View File

@@ -0,0 +1,3 @@
This is a test priority:H project:A
Another task

View File

@@ -0,0 +1,2 @@
'id','status','tags','entry','start','due','end','project','priority','fg','bg','description'
'545629d2-24a3-4a32-8894-57e708b98354','pending','',1238037900,,,,'A','M',,,'foo bar '
1 'id' 'status' 'tags' 'entry' 'start' 'due' 'end' 'project' 'priority' 'fg' 'bg' 'description'
2 '545629d2-24a3-4a32-8894-57e708b98354' 'pending' '' 1238037900 'A' 'M' 'foo bar '

View File

@@ -0,0 +1,2 @@
'id','uuid','status','tags','entry','start','due','recur','end','project','priority','fg','bg','description'
'7f7a4191-c2f2-487f-8855-7a1eb378c267','pending','',1238037947,,,,,'A','M',,,'foo bar'
1 'id','uuid','status','tags','entry','start','due','recur','end','project','priority','fg','bg','description'
2 '7f7a4191-c2f2-487f-8855-7a1eb378c267','pending','',1238037947,,,,,'A','M',,,'foo bar'

2
src/import/todo.txt Normal file
View File

@@ -0,0 +1,2 @@
x 2009-03-25 Walk the dog +project @context
This is a test +project @context