1
0
mirror of https://github.com/danog/gojekyll.git synced 2025-01-23 08:11:25 +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 { if err != nil {
return err 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 { for event := range events {
fmt.Print(event) fmt.Print(event)
} }
} else {
logger.label("Auto-regeneration:", "disabled. Use --watch to enable.")
} }
return nil return nil
} }

View File

@ -84,7 +84,7 @@ func loadSite(source string, flags config.Flags) (*site.Site, error) {
} else { } else {
logger.label(configurationFileLabel, "none") logger.label(configurationFileLabel, "none")
} }
logger.label("Source:", site.SourceDir()) logger.path("Source:", site.SourceDir())
err = site.Read() err = site.Read()
return site, err return site, err
} }

View File

@ -66,7 +66,6 @@ func (s *Site) Reloaded(paths []string) (*Site, error) {
func (s *Site) requiresFullReload(paths []string) bool { func (s *Site) requiresFullReload(paths []string) bool {
for _, path := range paths { for _, path := range paths {
fmt.Println("test", path)
switch { switch {
case path == "_config.yml": case path == "_config.yml":
return true return true