Idiomatic Cron expression parsing in Scala.
Cron Expression Parser is an utility tool meant to read a *nix/ crontab compatible expression and output expected running times.
cron-expression-parser is packaged as a ZIP file. A binary distribution includes the main Application JAR file, the
Scala 2.13.0 runtime and all required underlying libraries. It also includes start scripts for Linux, OSX and
Windows.
To run Cron Expression Parser navigate to the bin folder and run the script compatible with your platform:
cron-expression-parser */15 0 1,15 * 1-5 /usr/bin/findPlease, take a look at the Technical Task Specification for further instructions on how to use this application.
The remaining documentation will be focused on information for other developers.
cron-expression-parser is built using SBT:
To build from source and run tests, execute the following task in the project root directory:
sbt testCron Expression Parser makes use of SBT Native Packager to generate start scripts and native packages.
In order to stage cron-expression-parser so that you can run it locally use the following command:
sbt stageScripts and libraries are created in the stage directory. /bin contains fully functional scripts:
./target/universal/stage/bin/cron-expression-parserTo generate a end user distribution run the following task:
sbt universal:packageBinA ZIP file with everything required to run the application will be generated /target/universal.
While this is beyond the scope of the exercise, for information on how to build other types of packages (tar.gz, deb, rpm, dmg, msi, docker images, etc), please refer to SBT Native Packager Documentation.