MergeConfigs class
Framework\CLI\Commands\MergeConfigs
Class MergeConfigs.
Extends Framework\CLI\Command
Defined in libraries/dev-commands/src/MergeConfigs.php
Properties #
- $description
- -
- $group
- -
- $options
- -
- $usage
- -
$description
protected string $description = 'Merge configuration files.'
$group
protected string $group = 'Configs'
$options
protected array $options = array (
'--extension' => 'Set a custom file extension. Default is ".php"',
'-i' => 'Ignore files that do not return an array in the correct format.',
)
$usage
protected string $usage = 'mergeconfigs [options] -- [directory]'
Methods #
allowIgnore()
public function allowIgnore(): bool
Returns
bool
run()
public function run(): void
Returns
void
getDirectory()
protected function getDirectory(): string
Returns
string
getExtension()
protected function getExtension(): string
Returns
string
validateDir()
protected function validateDir(string $dir): string
Parameters
- string $dir
Returns
string
Inherited methods #
-
__construct()fromFramework\CLI\Command -
getConsole()fromFramework\CLI\Command -
setConsole()fromFramework\CLI\Command -
getName()fromFramework\CLI\Command -
setName()fromFramework\CLI\Command -
getGroup()fromFramework\CLI\Command -
setGroup()fromFramework\CLI\Command -
getDescription()fromFramework\CLI\Command -
setDescription()fromFramework\CLI\Command -
getUsage()fromFramework\CLI\Command -
setUsage()fromFramework\CLI\Command -
getOptions()fromFramework\CLI\Command -
setOptions()fromFramework\CLI\Command -
isActive()fromFramework\CLI\Command -
activate()fromFramework\CLI\Command -
deactivate()fromFramework\CLI\Command