Skip to content

Commit

Permalink
fix:index out of bound for get projects cmd (#184)
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Purohit <[email protected]>
  • Loading branch information
shivam-Purohit committed Feb 12, 2024
1 parent bed5b0c commit e44abf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cmd/get/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ var projectsCmd = &cobra.Command{
end = totalProjects

}
// check if there are no more projects to display
if start >= totalProjects {
utils.Red.Println("No more projects to display")
break
}

// displaying the projects for the current page
writer := tabwriter.NewWriter(os.Stdout, 8, 8, 8, '\t', tabwriter.AlignRight)
Expand Down

0 comments on commit e44abf3

Please sign in to comment.