hugo/hugolib/planner.go

22 lines
358 B
Go
Raw Normal View History

2013-09-01 04:13:04 +00:00
package hugolib
import (
"io"
2013-09-01 14:43:29 +00:00
"fmt"
2013-09-01 04:13:04 +00:00
)
func (s *Site) ShowPlan(out io.Writer) (err error) {
2013-09-01 14:43:29 +00:00
if len(s.Files) <= 0 {
fmt.Fprintf(out, "No source files provided.\n")
}
for _, file := range s.Files {
fmt.Fprintf(out, "%s\n", file)
if s.Target == nil {
fmt.Fprintf(out, " *implicit* => %s\n", "!no target specified!")
continue
}
}
2013-09-01 04:13:04 +00:00
return
}