mirror of
https://github.com/drone/drone-cli.git
synced 2024-11-23 01:11:57 +01:00
Changed BuildList to accept a ListOptions parameter
This commit is contained in:
parent
dfd9818af2
commit
092fbbe898
@ -5,6 +5,7 @@ import (
|
||||
"text/template"
|
||||
|
||||
"github.com/drone/drone-cli/drone/internal"
|
||||
"github.com/drone/drone-go/drone"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
@ -56,9 +57,7 @@ func buildList(c *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
page := c.Int("page")
|
||||
|
||||
builds, err := client.BuildList(owner, name, page)
|
||||
builds, err := client.BuildList(owner, name, &drone.ListOptions{Page: c.Int("page")})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user