Now get the absolute path to this folder, then open a new shell, and go to our task provider source code project folder . Run the following command to publish our source code into the task provider folder:
dotnet publish --output "absolute path to .\publish\engine\taskproviders\GeneratorProvider\Polyrific.Catapult.TaskProviders.Angular"
Register the engine in the CLI
Remember earlier we created a taskprovider.yml file? Now is the time to use it. Open the opencatapult cli shell, login, then run this command:
dotnet occli.dll provider register --file "absolute path to Polyrific.Catapult.TaskProviders.Angular\taskprovider.yml"
And that's it, you can now create a generate task using the provider:
That is it for the task provider tutorial. We hope it gives you a general idea on how opencatapult task provider work. If you want to learn more about other task providers, please go to the task provider reference