mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 09:15:26 +01:00 
			
		
		
		
	Add Pagination Options for List Subcomands (#204)
Add Pagination Options for List subcomands Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/204 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
		
							
								
								
									
										11
									
								
								cmd/repos.go
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								cmd/repos.go
									
									
									
									
									
								
							| @@ -59,6 +59,8 @@ var CmdReposList = cli.Command{ | ||||
| 			Required: false, | ||||
| 			Usage:    "Filter archived repos (true|false)", | ||||
| 		}, | ||||
| 		&PaginationPageFlag, | ||||
| 		&PaginationLimitFlag, | ||||
| 	}, LoginOutputFlags...), | ||||
| } | ||||
|  | ||||
| @@ -189,10 +191,11 @@ func runReposList(ctx *cli.Context) error { | ||||
| 	} | ||||
|  | ||||
| 	rps, _, err := client.SearchRepos(gitea.SearchRepoOptions{ | ||||
| 		OwnerID:    ownerID, | ||||
| 		IsPrivate:  isPrivate, | ||||
| 		IsArchived: isArchived, | ||||
| 		Type:       mode, | ||||
| 		ListOptions: getListOptions(ctx), | ||||
| 		OwnerID:     ownerID, | ||||
| 		IsPrivate:   isPrivate, | ||||
| 		IsArchived:  isArchived, | ||||
| 		Type:        mode, | ||||
| 	}) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 6543
					6543