commands: Add "hugo config mounts" command

This prints the effective file mounts in a project.

Fixes #6144
This commit is contained in:
Bjørn Erik Pedersen
2019-07-31 10:31:26 +02:00
parent 45ee8a7a52
commit d7c233afee
5 changed files with 74 additions and 13 deletions

View File

@@ -217,7 +217,7 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid
mods := m.ActiveModules
// Apply default project mounts.
if err := modules.ApplyProjectConfigDefaults(v, mods[len(mods)-1]); err != nil {
if err := modules.ApplyProjectConfigDefaults(v, mods[0]); err != nil {
return err
}