diff --git a/pkg/cmd/get/projects.go b/pkg/cmd/get/projects.go index 079e8256..7b3bd2a6 100644 --- a/pkg/cmd/get/projects.go +++ b/pkg/cmd/get/projects.go @@ -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)