Sitecore Patch File Generator cmdline Utility for Event Handlers taking array as args
Just created this Sitecore Event Handler Generator utility that can create event handler patch + associated cs file with a dummy method that you can override.
Should work for the following events :
Run this command -
.\SitecoreEventHandlerGenerator.exe "C:\\Projects\\myclient" "Client.Feature.MyFeature" "MovingMyItem" "EventHandlers" "App_Config\\Include\\" "item:moving"
First arg: Folder path that has app_config\include folder
Second arg: Desired name of the config file (with the .config file extension)
Third arg: Name of the CS Class that will host the event handler method
Fourth arg: Folder where the event handlers cs file will be saved
Fifth arg: Folder where you want your config file to be generated
Sixth arg: the event name as per show config page:
A sample command in action:
.\SitecoreEventHandlerGenerator.exe "C:\\Projects\\myclient\\" "MyClient.Feature.MyFeature" "CreateMyItem" "MyEventHandlers" "App_Config\\Include\\" "item:moving"
Github: https://github.com/navancommits/SitecorePatchFileGenerator
Comments
Post a Comment