Skip to content

Add --config (-c) CLI option to override config file path #73

Description

@igancev

Problem

The work:report command always loads configuration from the hardcoded default ~/.config/work-reporter/config.yaml (see src/Config/YamlConfigProvider.php). There is no way to point the CLI at a different config file.

Proposal

Add a --config / -c option to bin/console work:report accepting a path to a YAML config file. When provided, YamlConfigProvider should be instantiated with this path instead of the default.

Acceptance criteria

  • bin/console work:report --config /path/to/config.yaml loads the given file.
  • Short form -c works identically.
  • Without the option, current default behavior is preserved.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions