Skip to content

AllOptionGroup cls to support parameters passed as env vars #67

Open
@Malonsow

Description

@Malonsow

Given I have a group with cls=AllOptionGroup and some options in the group can be optionally passed as envvars (e.g. credentials), they are not recognized for the AllOptionGroup validation. Instead, error is thrown that not all required parameters of the group have been passed.

In my usecase the cli shall support multiple auth methods and idea is to have separate groups for each auth method. Since some auth methods require multiple parameters to be passed I'd like to use the AllOptionGroup (to check that either all or none parameters of the group have been entered), but since the parameters could contain secrets I want them to be passable via env var as well.

Now the problem is that by using AllOptionGroup currently it expects all the group parameters to be passed via cli whilst the env var parameters are not recognized at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions