From 677c167df42b2026cb53f742ef5bf4d37237b4d1 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Sun, 17 Apr 2016 12:50:26 +0200 Subject: [PATCH] Moves TODOs to github --- cmd/book.go | 3 +-- compiler/book.go | 2 -- compiler/lilypond.go | 1 - main.go | 6 ------ 4 files changed, 1 insertion(+), 11 deletions(-) diff --git a/cmd/book.go b/cmd/book.go index eb75c42..6616768 100644 --- a/cmd/book.go +++ b/cmd/book.go @@ -23,8 +23,7 @@ import ( var bookCmd = &cobra.Command{ Use: "book", Short: "Generate library songbook", - // TODO: Write description - Long: ``, + Long: ``, Run: func(cmd *cobra.Command, args []string) { path, opts := getSettings() compiler.MakeBook(path, opts) diff --git a/compiler/book.go b/compiler/book.go index 760154f..6a5cdbc 100644 --- a/compiler/book.go +++ b/compiler/book.go @@ -53,7 +53,6 @@ func MakeBook(path string, opts *settings.Settings) { helpers.Check(err, "error executing book template") f.Close() - // TODO: Better error messages when there is an error compiling latex cmd := exec.Command("latexmk", "-silent", "-pdf", "-cd", texPath) out, err := cmd.CombinedOutput() if err != nil { @@ -71,7 +70,6 @@ func MakeBook(path string, opts *settings.Settings) { "error": err, }).Error("failed to clean songbook latex files") } - // TODO: Make optional by flag err = os.Remove(texPath) helpers.Check(err, "could not remove songbook latex template") } diff --git a/compiler/lilypond.go b/compiler/lilypond.go index 11c1642..6caf1c5 100644 --- a/compiler/lilypond.go +++ b/compiler/lilypond.go @@ -31,7 +31,6 @@ var ( // PrepareLilypond sets all arguments and options for the Lilypond // compilation function using the given settings func PrepareLilypond(opts *settings.Settings) { - // TODO: Escape these directory strings // Adds all includes to the lilypond arguments for _, dir := range opts.LilypondIncludes { lilypondArgs = append(lilypondArgs, "--include="+dir) diff --git a/main.go b/main.go index a3fb79d..db4cb43 100644 --- a/main.go +++ b/main.go @@ -19,9 +19,3 @@ import "github.com/jjdekker/ponder/cmd" func main() { cmd.Execute() } - -// TODO: Make a command to check that settings are legal -// TODO: Add a clean command -// TODO: Add support for Ly files to the add command -// TODO: Allow an latex input file for styling -// TODO: Sort output into categories