1
0
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:
Raffaele Di Fazio 2018-11-16 14:54:19 +01:00
parent dfd9818af2
commit 092fbbe898
No known key found for this signature in database
GPG Key ID: 58D6875FAB8FF740

@ -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
}