Skip to content

Make possible to explicitly request "parameters" #15

@sebhoerl

Description

@sebhoerl

Currently, a stage like this will obtain either a value that has directly been passed by a child stage or a value that comes from the global pipeline configuration:

def configure(context):
   value = context.config("abc")

In some cases, we don't want to rely on the global pipeline configuration (because we want to explicitly make sure that this stage is called with a well-chosen argument). Currently, there is no way to enforce a parameter to by passed from another stage rather from global configuration. Therefore, I'd propose to have:

def configure(context):
   value = context.config("abc", parameter = True)

In this case the option becomes a "parameter" to the stage. This requires some moving around of code internally in the pipeline, but should not be awfully complicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions