Summary: Ref T11589. Provide a way for scripts to say "just continue if database config fails", and use it in `bin/config` and `bin/storage`. Test Plan: - Broke database config. - Ran `bin/config`, worked fine. - Ran `bin/storage`, got helpful "set up the database" message. - Ran `bin/repository`, got fatal. - Ran normal site with valid/invalid config, got proper feedback. Reviewers: chad Reviewed By: chad Maniphest Tasks: T11589 Differential Revision: https://secure.phabricator.com/D16502
		
			
				
	
	
		
			22 lines
		
	
	
		
			573 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			573 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env php
 | 
						|
<?php
 | 
						|
 | 
						|
$root = dirname(dirname(dirname(__FILE__)));
 | 
						|
require_once $root.'/scripts/init/init-setup.php';
 | 
						|
 | 
						|
$args = new PhutilArgumentParser($argv);
 | 
						|
$args->setTagline(pht('manage configuration'));
 | 
						|
$args->setSynopsis(<<<EOSYNOPSIS
 | 
						|
**config** __command__ [__options__]
 | 
						|
    Manage Phabricator configuration.
 | 
						|
 | 
						|
EOSYNOPSIS
 | 
						|
  );
 | 
						|
$args->parseStandardArguments();
 | 
						|
 | 
						|
$workflows = id(new PhutilClassMapQuery())
 | 
						|
  ->setAncestorClass('PhabricatorConfigManagementWorkflow')
 | 
						|
  ->execute();
 | 
						|
$workflows[] = new PhutilHelpArgumentWorkflow();
 | 
						|
$args->parseWorkflows($workflows);
 |