remove drone-hugo validate arg
The dependence of drone-hugo validate, hugo check, was removed since v0.92.0. As the hugo check does nothing in fact, a removal of command validate could be considered. - removed command validate in main.go and plugin_test.go - removed unused github.com/pkg/errors in plugin_test.go
This commit is contained in:
parent
3e380a7ddf
commit
5bb893c04e
2 changed files with 0 additions and 35 deletions
6
main.go
6
main.go
|
@ -81,11 +81,6 @@ func main() {
|
|||
EnvVar: "PLUGIN_URL",
|
||||
Value: "",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "validate",
|
||||
Usage: "validate config file before generation",
|
||||
EnvVar: "PLUGIN_VALIDATE",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "hugoversion",
|
||||
Usage: "the hugo version to be used",
|
||||
|
@ -110,7 +105,6 @@ func run(c *cli.Context) error {
|
|||
Drafts: c.Bool("drafts"),
|
||||
Expired: c.Bool("expired"),
|
||||
Future: c.Bool("future"),
|
||||
Validate: c.Bool("validate"),
|
||||
Config: c.String("config"),
|
||||
Content: c.String("content"),
|
||||
Layout: c.String("layout"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue