On Sat, Oct 1, 2011 at 3:07 PM, Paul Ruizendaal <p...@planet.nl> wrote:
> Isn't "fossil cgi" already doing that? A front-end could build the > appropriate environment variables and fork/exec "fossil cgi", feeding the > post body to fossil's stdin. > How's this look... a first prototype at feeding POST data in via CLI mode... [stephan@cheyenne:~/cvs/fossil/fossil-json]$ cat in.1 { "requestId":"POST from file test", "indent":2, "payload":{ "limit":2 } } [stephan@cheyenne:~/cvs/fossil/fossil-json]$ ./fossil json timeline wi --json-input - < in.1 { "fossil":"6d0667831a0aa39f1bbf248f1869769b35463eea", "timestamp":1317557990, "requestId":"POST from file test", "procTimeMs":1, "payload":{ "limit":2, "timeline":[ { "rid":12811, "uuid":"a7e68df71b95d35321b9d9aeec3c8068f991926c", "timestamp":1310227825, "comment":"Changes to wiki page [Apache On Windows XP]", "user":"jeffrimko", "eventType":"w" }, { "rid":12616, "uuid":"108404df1226db92a4fbeeae173613d6c4a44699", "timestamp":1308635729, "comment":"Changes to wiki page [Cookbook]", "user":"ron", "eventType":"w" } ] } } There are some mismatches in argument handling in that mode (as we can see from the "indent" request parameter not being honored), but that could be fixed. -- ----- stephan beal http://wanderinghorse.net/home/stephan/
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users