From 5a5ddf710583a3f6776fa3cb65382773601f46b2 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 21 Feb 2020 14:24:27 +0100 Subject: [PATCH] Add scaffolding constraints --- scaffold.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scaffold.yml b/scaffold.yml index 63e4278..3263f9a 100644 --- a/scaffold.yml +++ b/scaffold.yml @@ -3,6 +3,12 @@ vars: - type: string name: ProjectName description: Project Name + constraints: + - rule: Input == "" + message: The project name cannot be empty. - type: string name: ProjectNamespace - description: The Go module namespace \ No newline at end of file + description: The Go module namespace + constraints: + - rule: Input == "" + message: The module namespace cannot be empty.