gulien / orbit

:satellite: A cross-platform task runner for executing commands and generating files from templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate should fail on invalid variable usage

j-vizcaino opened this issue · comments

Expected Behavior

Template generation should fail when using a variable that is not defined.

Current Behavior

Unknown variable is replaced with <no value>

Steps to Reproduce (for bugs)

  1. Create test.txt with {{ .Orbit.missing }}
  2. Run orbit generate -f test.txt
  3. It should fail and print an error message

Your Environment

  • Version used (orbit version): 3.0.1