{{- /* option_os.tmpl ~ Options and sections for the artifact platform (operating system) field. */ -}} {{- define "optionOS" -}} {{- $os := (index . "platform") }} {{- $windows := tagOption $os "windows" }} {{- $dos := tagOption $os "dos" }} {{- $text := tagOption $os "text" }} {{- $textamiga := tagOption $os "textamiga" }} {{- $ansi := tagOption $os "ansi" }} {{- $pcb := tagOption $os "pcb" }} {{- $pdf := tagOption $os "pdf" }} {{- $image := tagOption $os "image" }} {{- $audio := tagOption $os "audio" }} {{- $video := tagOption $os "video" }} {{- $linux := tagOption $os "linux" }} {{- $mac10 := tagOption $os "mac10" }} {{- $php := tagOption $os "php" }} {{- $java := tagOption $os "java" }} {{- $markup := tagOption $os "markup" }} {{- $database := tagOption $os "database" }} {{- if eq $os "" }} {{- else }} {{- end }} {{$windows}}for Windows PC {{$dos}}for MsDos PC {{$text}}in regular text {{$ansi}}in ANSI (color) {{$textamiga}}for Amiga (Topaz font) {{$pcb}}for PCBoard {{$pdf}}PDF document {{$image}}Image or photo {{$audio}}Music or audio {{$video}}Video {{$linux}}Linux app {{$mac10}}Apple Mac app {{$php}}Shell script app {{$java}}Java web app {{$markup}}Html webpage {{$database}}Database {{- end -}}