1
0
mirror of https://github.com/danog/gojekyll.git synced 2025-01-23 07:41:13 +01:00

Suggest --watch

This commit is contained in:
Oliver Steele 2017-07-23 10:28:04 -04:00
parent 5e5aa3acb7
commit 306b657a1e
3 changed files with 4 additions and 3 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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