mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-15 10:39:14 +00:00
Exclude setup from cli command exec. (#3523)
The woodpecker-cli exec command only execute local pipelines so setup for remote server is not needed.
This commit is contained in:
@@ -18,7 +18,7 @@ type Config struct {
|
|||||||
LogLevel string `json:"log_level"`
|
LogLevel string `json:"log_level"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var skipSetupForCommands = []string{"setup", "help", "h", "version", "update", "lint", ""}
|
var skipSetupForCommands = []string{"setup", "help", "h", "version", "update", "lint", "exec", ""}
|
||||||
|
|
||||||
func Load(c *cli.Context) error {
|
func Load(c *cli.Context) error {
|
||||||
if firstArg := c.Args().First(); slices.Contains(skipSetupForCommands, firstArg) {
|
if firstArg := c.Args().First(); slices.Contains(skipSetupForCommands, firstArg) {
|
||||||
|
Reference in New Issue
Block a user