kozo/watchmaker

There is no license information available for the latest version (0.1.0) of this package.

0.1.0 2020-05-09 09:50 UTC

This package is auto-updated.

Last update: 2024-04-26 22:23:51 UTC


README

CircleCI Scrutinizer code quality (GitHub/Bitbucket)

Watchmaker is a library to manage "crontab" with code.

requirements

  • PHP 7.2+
  • crontab

Usage

Watchmaker is supported by the following frameworks. Use the framework's wrapper.

etc

  • dragonmantank/cron-expressionを利用してcronの書式をチェックする
  • テンプレート作成機能を作る
  • オプションを追加する
    • 引数nameを classに変更 (ショートはc)
    • 引数ネームスペースにショートを追加 (n)
    • -b バックアップオプション
    • -d watchmakerに存在しないものはcronから削除する
    • -f watchmakerに存在しないものはcronから削除する(-d よりこっちがいいかな?コメント行の管理とかがむずすぎる. forceモードで完全に上書きする)
    • -i 対話モード(非対話モード) quietがデフォルトであるので不要かな?
    • --allways カラー強制モード ansiがデフォルトであるので不要かな?
  • アンインストールを作る (Cron.phpに設定されてる行を削除する)
  • カラーリングを自前実装に切り替える or 別ライブラリを探す (allwasyが使えない, compose scriptで動かすときにカラーリングができるやつ)
    • オーバーライドで対応完了
  • watchmaker単体でつかえるようにする
  • リファクタリング
    • watchmaker
    • quartz
    • mechanical
      • CakePHP4対応
      • CakePHP3対応