Beispiel #1
0
// BuildsList lists an app's builds.
func BuildsList(appID string) error {
	c, appID, err := load(appID)

	if err != nil {
		return err
	}

	builds, err := builds.List(c, appID)

	if err != nil {
		return err
	}

	fmt.Printf("=== %s Builds\n", appID)

	for _, build := range builds {
		fmt.Println(build.UUID, build.Created)
	}
	return nil
}
Beispiel #2
0
// BuildsList lists an app's builds.
func BuildsList(appID string, results int) error {
	c, appID, err := load(appID)

	if err != nil {
		return err
	}

	if results == defaultLimit {
		results = c.ResponseLimit
	}

	builds, count, err := builds.List(c, appID, results)

	if err != nil {
		return err
	}

	fmt.Printf("=== %s Builds%s", appID, limitCount(len(builds), count))

	for _, build := range builds {
		fmt.Println(build.UUID, build.Created)
	}
	return nil
}