Skip to content

Add validation of command line and cookiecutter.json options #142

@seanh

Description

@seanh

Cookiecutter supports a pre_gen_project.py hook that can be used to validate template options: https://cookiecutter.readthedocs.io/en/stable/advanced/hooks.html#example-validating-template-variables We should consider using this to validate our options: crashing if any unknown options are given or if a known option is given an invalid value.

If we're lucky this will also validate the contents of projects cookiecutter.json files when you run make template.

This would help to avoid issues like #129

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