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{
3939 table := internal .CreateTable ()
4040 table .SetHeader ([]string {"Pipeline Name" , "Created At" , "Updated At" })
4141 table .Append ([]string {"" , "" , "" })
42- pipelines , err := codefreshClient .Pipelines ().List ()
42+ pipelines , err := codefreshClient .Pipelines ().List (nil )
4343 internal .DieOnError (err )
4444 for _ , p := range pipelines {
4545 table .Append ([]string {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010type (
1111 // IPipelineAPI declers Codefresh pipeline API
1212 IPipelineAPI interface {
13- List () ([]* Pipeline , error )
13+ List (qs map [ string ] string ) ([]* Pipeline , error )
1414 Run (string , * RunOptions ) (string , error )
1515 }
1616
@@ -75,11 +75,12 @@ func newPipelineAPI(codefresh Codefresh) IPipelineAPI {
7575}
7676
7777// Get - returns pipelines from API
78- func (p * pipeline ) List () ([]* Pipeline , error ) {
78+ func (p * pipeline ) List (qs map [ string ] string ) ([]* Pipeline , error ) {
7979 r := & getPipelineResponse {}
8080 resp , err := p .codefresh .requestAPI (& requestOptions {
8181 path : "/api/pipelines" ,
8282 method : "GET" ,
83+ qs : qs ,
8384 })
8485 err = p .codefresh .decodeResponseInto (resp , r )
8586 return r .Docs , err
You can’t perform that action at this time.
0 commit comments