levant icon indicating copy to clipboard operation
levant copied to clipboard

[FEATURE] required vars

Open ygersie opened this issue 6 years ago • 2 comments

Just like with Terraform it would be nice to be able to set required vars:

variable foo {}

In yaml that would be an empty key:

---
foo:

This would make it easier to force a user setting a dynamic var like version

ygersie avatar Dec 11 '17 09:12 ygersie

So in this case it would mean a user would need to input the variable by typing on the CLI?

jrasell avatar Dec 11 '17 22:12 jrasell

Yeah either prompt or (in my case better) fail with a log message. We run Levant from CI so failing instead of waiting for user input would be nice.

Terraform has:

-input=true - Ask for input for variables if not directly set.

ygersie avatar Dec 12 '17 08:12 ygersie