Skip to content

Commit

Permalink
Exclude setup from cli command exec. (#3523)
Browse files Browse the repository at this point in the history
The woodpecker-cli exec command only execute local pipelines so setup
for remote server is not needed.
  • Loading branch information
manuelluis authored Mar 20, 2024
1 parent 75803db commit 00b1651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 00b1651

Please sign in to comment.