mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-21 11:09:02 +01:00
Summary: Ref T12319. Allow `bin/lipsum generate` to generate owners packages. Test Plan: Generated ~4,000 packages with ~150,000 paths. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12319 Differential Revision: https://secure.phabricator.com/D17423
60 lines
1.2 KiB
PHP
60 lines
1.2 KiB
PHP
<?php
|
|
|
|
final class PhabricatorOwnersPackageContextFreeGrammar
|
|
extends PhutilContextFreeGrammar {
|
|
|
|
protected function getRules() {
|
|
return array(
|
|
'start' => array(
|
|
'[package]',
|
|
),
|
|
'package' => array(
|
|
'[adjective] [noun]',
|
|
'[adjective] [noun]',
|
|
'[adjective] [noun]',
|
|
'[adjective] [noun]',
|
|
'[adjective] [adjective] [noun]',
|
|
'[adjective] [noun] [noun]',
|
|
'[adjective] [adjective] [noun] [noun]',
|
|
),
|
|
'adjective' => array(
|
|
'Temporary',
|
|
'Backend',
|
|
'External',
|
|
'Emergency',
|
|
'Applied',
|
|
'Advanced',
|
|
'Experimental',
|
|
'Logging',
|
|
'Test',
|
|
'Network',
|
|
'Ephemeral',
|
|
'Clustered',
|
|
'Mining',
|
|
'Core',
|
|
'Remote',
|
|
),
|
|
'noun' => array(
|
|
'Support',
|
|
'Services',
|
|
'Infrastructure',
|
|
'Mail',
|
|
'Security',
|
|
'Application',
|
|
'Microservices',
|
|
'Monoservices',
|
|
'Megaservices',
|
|
'API',
|
|
'Storage',
|
|
'Records',
|
|
'Package',
|
|
'Directories',
|
|
'Library',
|
|
'Concern',
|
|
'Cluster',
|
|
'Engine',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|