humanmade / humanmade/Cavalcade-Runner

Add alternative configuration loading

Open
#24 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
56
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Right now, the runner loads wp-config in. With the new hook system (#23), this is going to overload wp-config a little. In addition, wp-config loading already doesn't work with some complex systems (like wordpress.org).

Proposal: add a `CAVALCADE_CONFIG` environment variable which specifies a PHP file to include instead of wp-config. The WP path would still be required on the command line, so the config acts as system-level configuration which can work with multiple installs. (For single install systems, it can replace wp-config instead.)

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the runner entry point that currently loads wp-config, then read the configuration flow alongside the new hook system described in issue #23. Verify the environment-variable behavior with both a single install and multiple installs, while keeping the WordPress path supplied on the command line.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.