{{ $version := .Get "version" }} {{ if not $version }} {{ errorf "missing value for param 'version': %s" .Position }} {{ end }} {{ $flatVersion := replace $version "." "" }} {{ $date := .Get "date" }} {{ if not $date }} {{ errorf "missing value for param 'date': %s" .Position }} {{ end }} {{ if ne (len (split $date "-")) 3 }} {{ errorf "invalid number of components for param 'date': %s" .Position }} {{ end }} {{ $exclude := split (.Get "exclude") "," }} {{ $showChecksum := .Get "showChecksum" }}