Re: Metacello GIT methodProperties.json
Posted by
Dale Henrichs-3 on
Apr 08, 2015; 9:26pm
URL: https://forum.world.st/Metacello-GIT-methodProperties-json-tp4818097p4818457.html
On 04/08/2015 01:11 AM, Thierry Goubier
wrote:
Actually it is not quite CommandShell based ... the shell is tODE
shell, where Smalltalk is the scripting language. The tODE git
commands are implemented by parsing the command line args,
resolving options and args to objects, and then calling a Smalltalk
git command API that eventually does make shell calls (sometimes
multiple git commands are folded into a single tODE git command ...
thus making it possible to ultimately switch out the actual `git
calls` and use something FFI-based, like libgit2...
This approach also makes it quite feasible to write fairly
complicated Smalltalk scripts that call the smalltalk git command
api directly, bypassing the command line interface altogether ...
In tODE I regularly drop off live objects to the file system using
STON ... The tODE shell which allows you to navigate an object-based
directory also allows you to mount the nodes from the file system
and when traversing the file system recognizes STON files and
presents objects to you instead of the dead files:)
I haven't tried taking this approach all the way to source files ...
but????
Dale