TaskRunner
A small library to run tasks in a console application
Install / Use
/learn @kristofclaes/TaskRunnerREADME
Description
TaskRunner is a small library to run tasks in a console application.
I often add a console application project to solutions I'm working on. I use this console application to execute simple tasks like emptying the test database, seeding the test database with test data, creating test files, ... With this TaskRunner I can skip the repetitive parts and just add tasks in a very simple way.
How to use
- Download the source and build it (a NuGet package is on its way)
- Create a new Console Application and add TaskRunner as a reference
- Create a class implementing the
ITaskinterface for each task you want to be able to execute - Add the code the task should execute to the
Runmethod - Optionally, decorate the class with a
[TaskDescription("A name for the task","A description for the task")]attribute - Add this code to the
Mainmethod of your Console Application:var runner = new Runner(); runner.Go(); - That's it!
You can also take a look at the sample application I have included.
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
