A simple cron parser that takes a config file as input and a simulated current time, and outputs when each job will be run next.
An example config file can be seen at example_config.txt
Prerequisite - ensure that you have Java installed & available to run from the command line.
- Either compile the project per the instructions below or download the latest
jarfrom Releases - Open the command line at the same directory as the
jarand run the following command
cat <config file path> | java -jar SimpleCronParser-1.1.jar <current time>Run the jar Gradle task, this will create a compiled jar in the .build/libs folder.
- Project root (
src) - Contains the entry point (main.kt), the main DI component & end-to-end tests domain- UseCases responsible for interacting with repositories/performing domain-specific logicrepository- Repositories responsible for interacting with data sources & mapping datadata- Data sources, e.g. logic for interacting with stdin:core- Classes that are common across all modules (e.g. models)