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

@@ -478,8 +478,8 @@ func (c *collector) collect() {
return
}
// Append the project module at the tail.
c.modules = append(c.modules, projectMod)
// Add the project mod on top.
c.modules = append(Modules{projectMod}, c.modules...)
}