kozo/watchmaker

此包的最新版本(0.1.0)没有提供许可证信息。

0.1.0 2020-05-09 09:50 UTC

This package is auto-updated.

Last update: 2024-09-26 23:10:05 UTC


README

CircleCI Scrutinizer code quality (GitHub/Bitbucket)

Watchmaker 是一个通过代码管理 "crontab" 的库。

要求

  • PHP 7.2+
  • crontab

用法

Watchmaker 支持以下框架。请使用框架的包装器。

等等

  • 使用 dragonmantank/cron-expression 检查 cron 的格式
  • 创建模板功能
  • 添加选项
    • 将参数 name 更改为 class(简称是 c)
    • 将参数名称空间添加为简称(n)
    • -b 备份选项
    • -d 从 cron 中删除 watchmaker 中不存在的内容
    • -f 从 cron 中删除 watchmaker 中不存在的内容(-d 相比,这可能更好?评论行管理太复杂了。强制模式完全覆盖)
    • -i 对话模式(非对话模式) quiet 为默认,可能不需要
    • --always 强制颜色模式 ansi 为默认,可能不需要
  • 创建卸载(从 Cron.php 中删除设置的行)
  • 切换到自实现的着色或寻找其他库(always 不可用,在 compose script 中运行时可以进行着色)
    • 通过覆盖处理完成
  • 使 watchmaker 单独可用
  • 重构
    • watchmaker
    • quartz
    • mechanical
      • CakePHP4 支持
      • CakePHP3 支持