Better Plugin Parsing

Former-commit-id: 8f0d86770072714575223249ab59cb0bcb11d1af [formerly 745c8318de08dc06bd9eece0d185528e4ed0872c] [formerly 61cda90693313822ad2e106dbc5a64104f2b5716 [formerly 722ca4b47f]]
Former-commit-id: c2dad3e81d44f3a92c61d3c21eb6d2113b333ed4 [formerly 898013a275bf0e2b86395f3fa8d5479b08c692d8]
Former-commit-id: 6e7c0f06a65cecdb2307df35db361f24d2353e00
This commit is contained in:
Henrique Dias
2017-07-29 11:32:07 +01:00
parent 5968111f3e
commit 3c9762ee97
3 changed files with 69 additions and 49 deletions

View File

@@ -38,15 +38,15 @@ var (
// Hugo is a hugo (https://gohugo.io) plugin.
type Hugo struct {
// Website root
Root string `description:"The relative or absolute path to the place where your website is located."`
Root string `name:"Website Root"`
// Public folder
Public string `description:"The relative or absolute path to the public folder."`
Public string `name:"Public Directory"`
// Hugo executable path
Exe string `description:"The absolute path to the Hugo executable or the command to execute."`
Exe string `name:"Hugo Executable"`
// Hugo arguments
Args []string `description:"The arguments to run when running Hugo"`
Args []string `name:"Hugo Arguments"`
// Indicates if we should clean public before a new publish.
CleanPublic bool `description:"Indicates if the public folder should be cleaned before publishing the website."`
CleanPublic bool `name:"Clean Public"`
}
func (h *Hugo) Find() error {