Skip to content

Conversation

@yama
Copy link
Member

@yama yama commented Jan 2, 2026

  • CLIブートストラップとオートローダーを追加し cms エントリーポイントを用意
  • CLIアプリケーション基盤と status コマンドを実装し JSON 出力に対応
  • キャッシュディレクトリ集計やバージョン/DB情報取得を行うサービスを追加
  • CLIディレクトリをmanager配下に配置

Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +12 to +13
$modx = require $basePath . '/manager/cli/bootstrap.php';
unset($modx);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge CLI起動時に$modxを破棄して致命的エラーになる

bootstrap.phpが返したDocumentParserをここでunsetしてしまうためグローバルの$modxが存在せず、その後のSystemStatusService::getStatus内のevo()->getVersionData()db()->connect()呼び出しがnullに対して実行されます。php manager/cli/bin/cms statusなど任意のコマンドを実行すると起動直後にFatal errorとなりCLIが使えません。DocumentParserをグローバルに保持したままコマンドを実行するようにしてください。

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants