Pluf Framework

Pluf Framework Commit Details


Date:2009-05-15 03:48:31 (15 years 7 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:95a9768590da0f57ff54214e8dcdd54da2caa081
Parents: af00cbc50a919d68ceb6ef390a10e1517caf529e
Message:Added the ability to add paths to the default include path.

Changes:

File differences

src/migrate.php
3838
3939
4040
41
41
4242
4343
4444
......
5858
5959
6060
61
62
63
64
65
66
67
68
69
61
62
63
64
65
66
67
68
69
70
7071
7172
7273
......
125126
126127
127128
129
130
131
128132
129133
130134
$cg = new Console_Getopt();
$shortoptions = 'aixuc:v:d';
$longoptions = array('app=', 'version=', 'conf=', 'search-path=');
$longoptions = array('app=', 'version=', 'conf=', 'search-path=', 'include-path=');
$args = $cg->readPHPArgv();
.' Upgrade MyApp: migrate.php --conf=path/to/config.php --app=MyApp'."\n"
.''."\n"
.'Options:'."\n"
.' c, --conf: Path to the configuration file.'."\n"
.' a: Upgrade all the installed applications.'."\n"
.' v, --version: Upgrade/Downgrade to the given version.'."\n"
.' --app: Application to upgrade/downgrade.'."\n"
.' u: Dry run, do nothing.'."\n"
.' --search-path: Set the DB search path before the run.'."\n"
.' d: Display debug information.'."\n"
.' i: Install the application(s).'."\n"
.' x: Uninstall the application(s).'."\n"
.' c, --conf: Path to the configuration file.'."\n"
.' a: Upgrade all the installed applications.'."\n"
.' v, --version: Upgrade/Downgrade to the given version.'."\n"
.' --app: Application to upgrade/downgrade.'."\n"
.' u: Dry run, do nothing.'."\n"
.' --search-path: Set the DB search path before the run.'."\n"
.' --include-path: Paths to add to the PHP include path.'."\n"
.' d: Display debug information.'."\n"
.' i: Install the application(s).'."\n"
.' x: Uninstall the application(s).'."\n"
.''."\n"
.'Note: The command line parser of PEAR is not very robust'."\n"
.' if you have an unexpected error about an offset not'."\n"
case '--search-path':
$search_path = trim($o[1]);
break;
case '--include-path':
set_include_path(get_include_path().PATH_SEPARATOR.trim($o[1]));
break;
case 'u':
$what['dry_run'] = true;
break;

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.06838s using 13 queries.