bdunogier/ezbashcompletion — Issue #7: Make bin scripts runnable from anywhere
Author: bdunogier
Created: 2012-01-20 09:22:17+00:00
State: open

Due to the way eZ Publish's bin scripts are implemented, you can only run them from the document root.

In real life, at least in my experience, this can be an annoyance; if you edit multiple settings file (global override + siteaccess, for instance), you usually cd to the settings directory, or to settings/override, you will end up clearing caches. As a good developer, you'll want to do that from command line. But then you'll have to switch one or two levels back, run the command, then cd back where you were from since something WILL be wrong ;-)

With the completion system, we have an extra runtime layer that makes it quite easy to make scripts runnable from *anywhere* within eZ Publish, transparently.

The main issue will be to find a decent algorithm that determines IF we are within eZ Publish without being a performance hog. Environnement variables may be used here for some sort of caching.