Differential D10797 Diff 25950 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementQuickstartWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementQuickstartWorkflow.php
| Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | public function execute(PhutilArgumentParser $args) { | ||||
| // Collapse adjacent newlines. | // Collapse adjacent newlines. | ||||
| $dump = preg_replace('/\n\s*\n/', "\n", $dump); | $dump = preg_replace('/\n\s*\n/', "\n", $dump); | ||||
| $dump = str_replace(';', ";\n", $dump); | $dump = str_replace(';', ";\n", $dump); | ||||
| $dump = trim($dump)."\n"; | $dump = trim($dump)."\n"; | ||||
| Filesystem::writeFile($output, $dump); | Filesystem::writeFile($output, $dump); | ||||
| $console = PhutilConsole::getConsole(); | |||||
| $console->writeOut( | |||||
| "**<bg:green> %s </bg>** %s\n", | |||||
| pht('SUCCESS'), | |||||
| pht('Wrote fresh quickstart SQL.')); | |||||
epriestley: Quality of life. | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| } | } | ||||
Quality of life.