File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- 0.19.1
1
+ 0.19.2
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ var getPipelineCmd = &cobra.Command{
39
39
table := internal .CreateTable ()
40
40
table .SetHeader ([]string {"Pipeline Name" , "Created At" , "Updated At" })
41
41
table .Append ([]string {"" , "" , "" })
42
- pipelines , err := codefreshClient .Pipelines ().List ()
42
+ pipelines , err := codefreshClient .Pipelines ().List (nil )
43
43
internal .DieOnError (err )
44
44
for _ , p := range pipelines {
45
45
table .Append ([]string {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
type (
11
11
// IPipelineAPI declers Codefresh pipeline API
12
12
IPipelineAPI interface {
13
- List () ([]* Pipeline , error )
13
+ List (qs map [ string ] string ) ([]* Pipeline , error )
14
14
Run (string , * RunOptions ) (string , error )
15
15
}
16
16
@@ -75,11 +75,12 @@ func newPipelineAPI(codefresh Codefresh) IPipelineAPI {
75
75
}
76
76
77
77
// Get - returns pipelines from API
78
- func (p * pipeline ) List () ([]* Pipeline , error ) {
78
+ func (p * pipeline ) List (qs map [ string ] string ) ([]* Pipeline , error ) {
79
79
r := & getPipelineResponse {}
80
80
resp , err := p .codefresh .requestAPI (& requestOptions {
81
81
path : "/api/pipelines" ,
82
82
method : "GET" ,
83
+ qs : qs ,
83
84
})
84
85
err = p .codefresh .decodeResponseInto (resp , r )
85
86
return r .Docs , err
You can’t perform that action at this time.
0 commit comments