On Fri, Jun 6, 2014 at 3:47 PM, Michael Richter <ttmrich...@gmail.com> wrote:
> Where do I find the variables and commands Fossil exposes to TH documented? > Not the answer you want, but... The commands: [stephan@host:~/cvs/fossil/fossil/src]$ grep 'TH command:' *.c th_main.c:** TH command: httpize STRING th_main.c:** TH command: enable_output BOOLEAN th_main.c:** TH command: puts STRING th_main.c:** TH command: html STRING th_main.c:** TH command: wiki STRING th_main.c:** TH command: htmlize STRING th_main.c:** TH command: date th_main.c:** TH command: hascap STRING... th_main.c:** TH command: hasfeature STRING th_main.c:** TH command: tclReady th_main.c:** TH command: anycap STRING th_main.c:** TH command: http ?-asynchronous? ?--? url ?payload? tkt.c:** TH command: append_field FIELD STRING the variables require a bit more investigation to resolve the C-level variables used in most of them: [stephan@host:~/cvs/fossil/fossil/src]$ grep Th_SetVar *.c th.c:** of this structure. Variable values set using the Th_SetVar command th.c:** By default, the Th_SetVar(), Th_UnsetVar() and Th_GetVar() functions th.c: Th_SetVar(interp, (char *)"::th_stack_trace", -1, zStack, nStack); th.c:int Th_SetVar( th.c: Th_SetVar(interp, (char *)"::th_stack_trace", -1, 0, 0); th_lang.c: Th_SetVar(interp, argv[2], argl[2], zResult, nResult); th_lang.c: Th_SetVar(interp, argv[1], argl[1], argv[2], argl[2]); th_lang.c: Th_SetVar(interp, p->azParam[i], p->anParam[i], zVal, nVal); th_lang.c: Th_SetVar(interp, (const char *)"args", -1, zArgs, nArgs); th_main.c: Th_SetVar(interp, zCol, szCol, zVal, szVal); th_main.c: Th_SetVar(g.interp, zName, -1, zValue, strlen(zValue)); th_main.c: Th_SetVar(g.interp, zName, -1, zValue, strlen(zValue)); xfer.c: rc = Th_SetVar(g.interp, "uuid", -1, zUuid, -1); -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users