Skip to content

Check allowed subprojects & environments separately instead of via parser generation #281

@isomorpheme

Description

@isomorpheme

Currently, the configured subprojects and environments are essentially baked into the command parser:

pSubproject = P.choice (fmap P.string subprojects)

pDeployEnvironments = map (fmap DeployEnvironment . P.string) environments

If the subprojects to deploy are instead parsed as arbitrary identifiers, and then checked later, we can do much better error reporting, i.e. including the list of configured subprojects. And that makes the parser more pure in a sense, because it now no longer has to depend on the project config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions