#!/usr/bin/env zsh
cat <<EOF
-%rec: Album
-%mandatory: Artist Album
-%allowed: Year Collection Lossless
-%type: Year int
-%type: Lossless bool
+%rec: album
+%mandatory: artist album
+%allowed: year col lossless
+%type: year int
+%type: lossless bool
EOF
cols=()
for col ($COLS) [[ -e cols/$col/$name ]] && cols=($cols $col)
- print "Artist: ${(j/-/)artist:gs/_/ /}"
- [[ -n $year ]] && print "Year: $year"
- print "Album: ${(j/-/)album:gs/_/ /}"
- [[ -n $lossless ]] && print "Lossless: yes"
- for col ($cols) print "Collection: $col"
+ print "artist: ${(j/-/)artist:gs/_/ /}"
+ [[ -n $year ]] && print "year: $year"
+ print "album: ${(j/-/)album:gs/_/ /}"
+ [[ -n $lossless ]] && print "lossless: yes"
+ for col ($cols) print "col: $col"
print
}