mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-04 18:21:06 +02: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:
parent
75803dba41
commit
00b1651f47
@ -18,7 +18,7 @@ type Config struct {
|
||||
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 {
|
||||
if firstArg := c.Args().First(); slices.Contains(skipSetupForCommands, firstArg) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user