Bug fixes, config generator

This commit is contained in:
2023-12-10 10:10:46 -05:00
parent 5d2ca40d04
commit cdf92c8a54
12 changed files with 124 additions and 23 deletions

View File

@ -129,16 +129,17 @@ func (c *Client) streamProjects(pi *ProgressInfo, ownerOnly bool) {
for {
projects, resp, err := c.ListProjects(listOpts)
if err != nil {
pi.ErrorChan <- err
break
}
// We're done when we have it all or our context is done
if c.Ctx.Err() != nil || resp.NextPage == 0 {
pi.DoneChan <- nil
break
}
if err != nil {
pi.ErrorChan <- err
}
numProjects += len(projects)
pi.ProjectsChan <- projects
pi.ProgressChan <- Progress{