Added the hugoExtended

This commit is contained in:
Jens True 2019-04-25 10:48:42 +02:00
commit 1f5cdffd0b
6 changed files with 41 additions and 12 deletions

View file

@ -92,6 +92,11 @@ func main() {
EnvVar: "PLUGIN_HUGO_VERSION",
Value: "",
},
cli.BoolFlag{
Name: "hugoExtended",
Usage: "If the hugo extended package should be used",
EnvVar: "PLUGIN_HUGO_EXTENDED",
},
}
if err := app.Run(os.Args); err != nil {
log.Fatal(err)
@ -102,6 +107,7 @@ func run(c *cli.Context) error {
plugin := Plugin{
Config: Config{
HugoVersion: c.String("hugoVersion"),
HugoExtended: c.Bool("hugoExtended"),
BuildDrafts: c.Bool("buildDrafts"),
BuildExpired: c.Bool("buildExpired"),
BuildFuture: c.Bool("buildFuture"),