Skip to content

[RFC] Config file #167

@malarzm

Description

@malarzm

Currently the only way to configure how Paraunit should behave is to add CLI flags to the command, which is great because it's simple. It would be however awesome to have a config file (like other tools do) which then could be overridden by CLI options. The config would be passed to the command with -c|--configuration like vendor/bin/paraunit -c paraunit.yaml (or any other format you prefer). Paraunit could also be actively looking for the config file, i.e. use it if present, but that's a detail. The file would look like a standard Symfony DI config file:

parameters:
    # whatever one could pass via CLI arguments could be here as well

services:
    App\Extension\Paraunit\CustomChunker: ~

    Paraunit\Runner\TestChunkerInterface: '@App\Extension\Paraunit\CustomChunker`

Services part should work pretty well when paraunit is installed through composer as it'll use app's autoloader. I am not sure about PHARs though.

What do you guys think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions