diff options
author | elioat <elioat@tilde.institute> | 2022-12-09 14:17:34 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2022-12-09 14:17:34 -0500 |
commit | 9f21b17e54e199d9ae9da71e33d53335bacfc45c (patch) | |
tree | 053c89c814c536766d3d0b85948181c56e94c45b /src | |
parent | eea643fc8c1db1297c4ed94e42099d9c479e2aa1 (diff) | |
download | december-2022-9f21b17e54e199d9ae9da71e33d53335bacfc45c.tar.gz |
you can dance if you want to
Diffstat (limited to 'src')
-rw-r--r-- | src/catalogue.lil | 10 | ||||
-rw-r--r-- | src/test.csv | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/catalogue.lil b/src/catalogue.lil index 52afd69..ab6b20a 100644 --- a/src/catalogue.lil +++ b/src/catalogue.lil @@ -39,8 +39,14 @@ catalogue:table catalogue # alternate syntax to make a table, # t: insert food:("Eggs","Pancakes","Grapefruit") quantity:(3,4,1) tasty:(1,1,0) into 0 +# validate that I can write a table to disk and read it back in show[catalogue] - out:writecsv[catalogue] +show[out] +write["test.csv" out] + +data:read["test.csv"] +newtable:readcsv[data] +show[newtable] +# HUGE SUCCESS! -show[out] \ No newline at end of file diff --git a/src/test.csv b/src/test.csv new file mode 100644 index 0000000..cfb85c6 --- /dev/null +++ b/src/test.csv @@ -0,0 +1,6 @@ +entry_type,parent,title,body,reference,created_date +folder,0,read,0,0,2022-12-07 +folder,0,to read,0,0,2022-12-07 +note,0,what an idea,what if I made a lil cli,0,2022-12-07 +link,0,Oatmeal,0,https://eli.li,2022-12-07 +link,0,sans,0,https://smallandnearlysilent.com,2022-12-07 \ No newline at end of file |