Moves TODOs to github
This commit is contained in:
parent
57babbd052
commit
677c167df4
@ -23,8 +23,7 @@ import (
|
|||||||
var bookCmd = &cobra.Command{
|
var bookCmd = &cobra.Command{
|
||||||
Use: "book",
|
Use: "book",
|
||||||
Short: "Generate library songbook",
|
Short: "Generate library songbook",
|
||||||
// TODO: Write description
|
Long: ``,
|
||||||
Long: ``,
|
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
path, opts := getSettings()
|
path, opts := getSettings()
|
||||||
compiler.MakeBook(path, opts)
|
compiler.MakeBook(path, opts)
|
||||||
|
@ -53,7 +53,6 @@ func MakeBook(path string, opts *settings.Settings) {
|
|||||||
helpers.Check(err, "error executing book template")
|
helpers.Check(err, "error executing book template")
|
||||||
f.Close()
|
f.Close()
|
||||||
|
|
||||||
// TODO: Better error messages when there is an error compiling latex
|
|
||||||
cmd := exec.Command("latexmk", "-silent", "-pdf", "-cd", texPath)
|
cmd := exec.Command("latexmk", "-silent", "-pdf", "-cd", texPath)
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -71,7 +70,6 @@ func MakeBook(path string, opts *settings.Settings) {
|
|||||||
"error": err,
|
"error": err,
|
||||||
}).Error("failed to clean songbook latex files")
|
}).Error("failed to clean songbook latex files")
|
||||||
}
|
}
|
||||||
// TODO: Make optional by flag
|
|
||||||
err = os.Remove(texPath)
|
err = os.Remove(texPath)
|
||||||
helpers.Check(err, "could not remove songbook latex template")
|
helpers.Check(err, "could not remove songbook latex template")
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,6 @@ var (
|
|||||||
// PrepareLilypond sets all arguments and options for the Lilypond
|
// PrepareLilypond sets all arguments and options for the Lilypond
|
||||||
// compilation function using the given settings
|
// compilation function using the given settings
|
||||||
func PrepareLilypond(opts *settings.Settings) {
|
func PrepareLilypond(opts *settings.Settings) {
|
||||||
// TODO: Escape these directory strings
|
|
||||||
// Adds all includes to the lilypond arguments
|
// Adds all includes to the lilypond arguments
|
||||||
for _, dir := range opts.LilypondIncludes {
|
for _, dir := range opts.LilypondIncludes {
|
||||||
lilypondArgs = append(lilypondArgs, "--include="+dir)
|
lilypondArgs = append(lilypondArgs, "--include="+dir)
|
||||||
|
6
main.go
6
main.go
@ -19,9 +19,3 @@ import "github.com/jjdekker/ponder/cmd"
|
|||||||
func main() {
|
func main() {
|
||||||
cmd.Execute()
|
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
|
|
||||||
|
Reference in New Issue
Block a user