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:
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"),
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user