mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
712e22208c
Summary: Also provide a way to update old files metadata. Test Plan: Create a revision which includes a image file. Check whether the widht, height metadata exists. Run `scripts/files/manage_files.php metadata --all` to update previously uploaded files. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2101 Differential Revision: https://secure.phabricator.com/D4347
24 lines
605 B
PHP
Executable file
24 lines
605 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
$root = dirname(dirname(dirname(__FILE__)));
|
|
require_once $root.'/scripts/__init_script__.php';
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
|
$args->setTagline('manage files');
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
**files** __command__ [__options__]
|
|
Manage Phabricator file storage.
|
|
|
|
EOSYNOPSIS
|
|
);
|
|
$args->parseStandardArguments();
|
|
|
|
$workflows = array(
|
|
new PhabricatorFilesManagementEnginesWorkflow(),
|
|
new PhabricatorFilesManagementMigrateWorkflow(),
|
|
new PhutilHelpArgumentWorkflow(),
|
|
new PhabricatorFilesManagementMetadataWorkflow(),
|
|
);
|
|
|
|
$args->parseWorkflows($workflows);
|