- Swift 5.5
- Command line tools
- Use testFile.txt to input the given test data (same level as package.swift) with the test for the cron parser in this format:
30 1 /bin/run_me_daily
45 * /bin/run_me_hourly
* * /bin/run_me_every_minute
* 19 /bin/run_me_sixty_times
- In the root of the project run the command
cat <inputFile> | swift run Scheduler <simulatedTime>
- inputFile is the file containing the information for the cron parser
- simulatedTime: the simulated time to run the cron parser in format HH:mm
- Example:
cat testFile.txt | swift run Scheduler 16:10