|
![]() |
Writing FastCST PluginsThe Only Scriptable Version Control ToolUnless I’m sadly mistaken, I believe FastCST is the only version control tool that lets you easily write your own commands and triggers. CVS and other systems will let you run shell scripts and stuff, but FastCST plugins are actually loaded the same as any other command, have access to the same APIs, and are easy to write. Additionally, you get to use Ruby so your automation possibilities are endless. Feel free to correct me if I’m wrong about being the only game in town when it comes to automation. I really hope the other systems adopt the same approach since I think extension is a mandatory requirement for any development tool. Commands and TriggersPlugins come in two flavors: Commands and Triggers. A Command is a something that works like all the other FastCST commands. They take arguments and use the base APIs to do stuff. A Trigger is a little object that “wraps” a command so that you can do work before/after a command is run. Writing both Commands and Triggers is really easy. The gist of the process is:
There are some details to implementing the Command and Trigger classes. But as an example, take a look in the tools/plugins and tools/triggers directories for some examples. More To ComeI’ll be expanding this document in later releases once the API stabilizes more. |