Lines Matching defs:files

33         $options->registerCommand('addTest', 'Add the testing framework files and a test. (_test/)');
36 $options->registerCommand('addConf', 'Add the configuration files. (conf/)');
37 $options->registerCommand('addLang', 'Add the language files. (lang/)');
53 $options->registerCommand('deletedFiles', 'Create the list of deleted files based on the git history.');
54 $options->registerCommand('rmObsolete', 'Delete obsolete files.');
72 $options->registerCommand('cleanSvg', 'Clean a existing SVG files to reduce their file size.');
73 $options->registerArgument('files...', 'The files to clean (will be overwritten)', true, 'cleanSvg');
78 'Clean language files from unused language strings. Detecting which strings are truly in use may ' .
84 $options->registerArgument('files...', 'The files to check. Defaults to the whole extension.', false, 'check');
87 $options->registerArgument('files...', 'The files to check. Defaults to the whole extension.', false, 'fix');
203 * Create the given files with their given content
205 * Ignores all files that already exist
207 * @param array $files A File array as created by Skeletor::getFiles()
209 protected function createFiles($files)
211 foreach ($files as $path => $content) {
349 * Generate a list of deleted files from git
367 $this->info('No deleted files found');
371 $content = "# This is a list of files that were present in previous releases\n" .
375 file_put_contents('deleted.files', $content);
376 $this->success('written deleted.files');
381 * Remove files that shouldn't be here anymore
409 * @param string[] $files
414 protected function cmdCleanSVG($files, $keep = false)
420 foreach ($files as $file) {
433 $files = glob('./lang/*/lang.php');
434 foreach ($files as $file) {
438 $files = glob('./lang/*/settings.php');
439 foreach ($files as $file) {
478 protected function cmdCheck($files = [])
489 if ($files) {
490 $args = array_merge($args, $files);
506 protected function cmdFix($files = [])
519 if ($files) {
520 $args = array_merge($args, $files);
540 if ($files) {
541 $args = array_merge($args, $files);