On Wed, Jul 2, 2014 at 1:19 AM, Ron Wilson <ronw.m...@gmail.com> wrote:

> As for Fossil providing the needed bits to write a plug-in to any given
> tool, it is possible to write a plug-in that uses the command line Fossil.
> Or, for that matter, a hybrid that uses libfossil for information and
> fossil to perform commits, updates, etc.
>

One of the benefits of libf is that it becomes really easy to write
one-shot, single-purpose apps. See this page for a list of the current apps:

http://fossil.wanderinghorse.net/repos/libfossil/index.cgi/wiki?name=f-tools

If you wanted, for example, to create a tool which calculates the md5 of a
given zip file, you could use f-zip as a basis and, instead of writing the
zip to a file, use the libf md5 API to hash it. Or add a flag to f-zip
which does that.

With script bindings it becomes even simpler. The proof-of-concept "th1ish"
bindings show us that it can be done:

http://fossil.wanderinghorse.net/repos/libfossil/cgidemo/

(That's ALL implemented using the libfossil script bindings, by the way!)

and i am at this very moment working on the next generation of that
scripting engine to get around limitations in that engine i ran into while
implementing an interactive fossil shell:

https://docs.google.com/document/d/1hvMoHSIz94dob6fCU6SLxle_s7YL6CrA_4aU12OWwWY/view

:)

(That code is the reason libfossil is at a standstill at the moment ;)

-- 
----- 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

Reply via email to