Skip to content

Releases: PhpGt/Cron

Cli improvements

23 Sep 11:25
b6b1e8d
Compare
Choose a tag to compare

In this patch release, the Cli command has been improved to follow a standard namespace pattern (Gt\RepoName\Cli) and to use the Cli Command's inbuilt stream.

CI and type safety improvements

15 Feb 09:59
a2eb615
Compare
Choose a tag to compare

This patch release includes three improvements:

  1. CI is handled by Github Actions now - you can check out the build history at https://github.com/PhpGt/Cli/actions
  2. PHPStan level 6 has been applied to the code, meaning certain type hints have been improved for greater readability and future maintainability.
  3. A minor bug was fixed thanks to the stricter types: crontab files that contained only comments would throw an exception prior to this release.

Have fun!

February update

20 Feb 16:55
Compare
Choose a tag to compare

Nothing exciting here, just an update to the dependencies and some tests for switching CI to Github Actions.

Stable release

17 Jun 15:17
Compare
Choose a tag to compare

Running your crontab during local development has proven to be extremely useful over the last few WebEngine projects that have been developed on internally.

Since the introduction of the last missing feature, the --now flag, there is no vital functioanlity outstanding preventing this repository from being marked as stable... so here it is, version 1.0.0 of the PHP cron runner.

Have fun, and stay productive!

Argument processing improvements

10 Jun 15:02
Compare
Choose a tag to compare
Pre-release

Utilising new functionality from PHP.Gt/Cli upstream, arguments on commands can now be nullable, which has the major improvement of not having to pass arguments with no value at the end of the argument list.

Terminology has been changed in this release to introduce --watch and --now. The watch argument continues the cron execution forever (similar to how PHP.Gt/Build works), and the now argument runs all cron tasks at the start of the execution, which is very useful when developing locally.

Function command execution

03 Jan 11:18
Compare
Choose a tag to compare
Pre-release

Static functions can now be called from the crontab file. Further tests have been written to ensure missing functions and scripts will be handled correctly.

Command execution

03 Jan 11:17
Compare
Choose a tag to compare
Command execution Pre-release
Pre-release

The final part of the functionality is in the testing phase. Commands that are listed within the crontab file are executed. This behaves exactly the same as the unix crontab, apart from the shell used is the current system shell, running as the calling user.

Improvements to tests

03 Jan 11:14
Compare
Choose a tag to compare
Improvements to tests Pre-release
Pre-release
v0.2.1

Tidy up code

Stream reworking

03 Jan 11:13
Compare
Choose a tag to compare
Stream reworking Pre-release
Pre-release

The stream property is renamed to output, and now streams are injected into the Command constructor.

Comments in crontab

03 Jan 11:11
Compare
Choose a tag to compare
Comments in crontab Pre-release
Pre-release

Comments can be added to the crontab file. Any lines that start with a hash (#) will be ignored when reading.