nunomaduro/phpinsights

[Laravel] Allow to set command parameters from config file

Open

#376 aberto em 10 de mar. de 2020

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)PHP (308 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (5.092 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Q A
Bug report? no
Feature request? yes
Library version 1.13.0

Related with https://github.com/nunomaduro/phpinsights/issues/23 will be a great idea to allow set all commands parameters from config/insights.php when is used with php artisan insights.

Maybe something like:

'parameters' => '--format=json -d memory_limit=2000M -v',

or

'parameters' => [
    '--format=json',
    '-d memory_limit=2000M',
    '-v',
],

Parameters from command line must overwrite config parameters:

php artisan insights --format=html

And also an option to avoid use config will be great:

php artisan insights --no-config-parameters

Thanks!

Guia do colaborador