A small application to manage Lilypond music repositories

Allows uncategorized scores to be hidden from the book

+8 -8
+2 -3
compiler/book.go
··· 55 55 {{end}} 56 56 {{end}} 57 57 58 - {{ if unknown .Scores }} \chapter{Others} \newpage {{end}} 58 + {{if not .Settings.HideUncategorized }}{{ if unknown .Scores }} \chapter{Others} \newpage {{end}} 59 59 {{range .Scores}} 60 60 {{ if eq (len .Categories) 0 }} 61 61 \phantomsection 62 62 \addcontentsline{toc}{section}{{printf "{"}}{{ .Name }}{{printf "}"}} 63 63 \includepdf[pages=-]{{printf "{"}}{{.OutputPath}}{{printf "}"}} 64 - {{end}} 65 - {{end}} 64 + {{end}}{{end}}{{end}} 66 65 \end{document} 67 66 ` 68 67
+6 -5
settings/settings.go
··· 25 25 // Settings provides a structure to interact with the settings 26 26 // of a Ponder library 27 27 type Settings struct { 28 - Name string // Name of the Ponder library 29 - Author string // Author of the Ponder library 30 - IgnoreDirs []string // Directories to be ignored on search 31 - LilypondIncludes []string // Directories to be included when running the lilypond compiler 32 - OutputDir string // Directory in which all complete file are stored 28 + Name string // Name of the Ponder library 29 + Author string // Author of the Ponder library 30 + IgnoreDirs []string // Directories to be ignored on search 31 + LilypondIncludes []string // Directories to be included when running the lilypond compiler 32 + OutputDir string // Directory in which all complete file are stored 33 + HideUncategorized bool // Hide scores without a category from the book 33 34 } 34 35 35 36 // FromFile reads a settings file in json format and returns the Settings struct