diff --git a/commands/commands.go b/commands/commands.go index 8079007..0892ebf 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -45,10 +45,12 @@ func buildCommand(site *site.Site) error { if err != nil { return err } - logger.label("Auto-regeneration", "enabled for %q\n", site.SourceDir()) + logger.label("Auto-regeneration:", "enabled for %q\n", site.SourceDir()) for event := range events { fmt.Print(event) } + } else { + logger.label("Auto-regeneration:", "disabled. Use --watch to enable.") } return nil } diff --git a/commands/run.go b/commands/run.go index 28786af..1e0d24b 100644 --- a/commands/run.go +++ b/commands/run.go @@ -84,7 +84,7 @@ func loadSite(source string, flags config.Flags) (*site.Site, error) { } else { logger.label(configurationFileLabel, "none") } - logger.label("Source:", site.SourceDir()) + logger.path("Source:", site.SourceDir()) err = site.Read() return site, err } diff --git a/site/read.go b/site/read.go index fa2de65..cd65bcc 100644 --- a/site/read.go +++ b/site/read.go @@ -66,7 +66,6 @@ func (s *Site) Reloaded(paths []string) (*Site, error) { func (s *Site) requiresFullReload(paths []string) bool { for _, path := range paths { - fmt.Println("test", path) switch { case path == "_config.yml": return true