1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Add pipeline purge command to cli (#4470)

This commit is contained in:
Robert Kaussow
2024-11-30 13:57:59 +01:00
committed by GitHub
parent 3c938e2b46
commit 5149d3eda4
9 changed files with 279 additions and 18 deletions

View File

@@ -112,8 +112,8 @@ func TestPipelineList(t *testing.T) {
command := buildPipelineListCmd()
command.Writer = io.Discard
command.Action = func(ctx context.Context, c *cli.Command) error {
pipelines, err := pipelineList(ctx, c, mockClient)
command.Action = func(_ context.Context, c *cli.Command) error {
pipelines, err := pipelineList(c, mockClient)
if tt.wantErr != nil {
assert.EqualError(t, err, tt.wantErr.Error())
return nil