1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-23 09:21:56 +01:00

added plugin whitelist to cmd line args

This commit is contained in:
Brad Rydzewski 2016-04-22 09:46:44 -07:00
parent b2db1ab915
commit 8d32ea9a09

@ -106,6 +106,11 @@ var ExecCmd = cli.Command{
Name: "debug",
Usage: "execute the build in debug mode",
},
cli.StringSliceFlag{
Name: "whitelist",
Usage: "whitelist of enabled plugins",
Value: &cli.StringSlice{"plugins/*", "*/*", "*/*/*"},
},
},
}
@ -231,7 +236,7 @@ func execCmd(c *cli.Context) error {
System: &drone.System{
Link: c.GlobalString("server"),
Globals: globals,
Plugins: []string{"plugins/*", "*/*"},
Plugins: c.StringSlice("whitelist"),
},
}