diff options
author | Steve Francia <steve.francia@gmail.com> | 2016-01-30 00:54:33 +0300 |
---|---|---|
committer | Steve Francia <steve.francia@gmail.com> | 2016-01-30 00:54:33 +0300 |
commit | d158f7e339b9037a3160043db6660cac24f14aa9 (patch) | |
tree | c8b41cc0cd2c8e53db2d89e482153c663666040f | |
parent | cd36d752a3e8e2b75965fe281e6466d7a274cd94 (diff) |
Provide more detail on static sync when running with verbose
-rw-r--r-- | commands/hugo.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 5ee3f7385..3a27661bc 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -471,13 +471,18 @@ func getStaticSourceFs() afero.Fs { } if !useStatic { + jww.INFO.Println(themeDir, "is the only static directory available to sync from") return afero.NewReadOnlyFs(afero.NewBasePathFs(source, themeDir)) } if !useTheme { + jww.INFO.Println(staticDir, "is the only static directory available to sync from") return afero.NewReadOnlyFs(afero.NewBasePathFs(source, staticDir)) } + jww.INFO.Println("using a UnionFS for static directory comprised of:") + jww.INFO.Println("Base:", themeDir) + jww.INFO.Println("Overlay:", staticDir) base := afero.NewReadOnlyFs(afero.NewBasePathFs(hugofs.SourceFs, themeDir)) overlay := afero.NewReadOnlyFs(afero.NewBasePathFs(hugofs.SourceFs, staticDir)) return afero.NewCopyOnWriteFs(base, overlay) @@ -506,6 +511,9 @@ func copyStatic() error { // Now that we are using a unionFs for the static directories // We can effectively clean the publishDir on initial sync syncer.Delete = viper.GetBool("cleanDestinationDir") + if syncer.Delete { + jww.INFO.Println("removing all files from destination that don't exist in static dirs") + } jww.INFO.Println("syncing static files to", publishDir) // because we are using a baseFs (to get the union right). |