mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	Add tea org create <name> (#420)
				
					
				
			fixes #287, fixes #363 Co-authored-by: Norwin <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/420 Reviewed-by: techknowlogick <techknowlogick@gitea.io> Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: Norwin <noerw@noreply.gitea.io> Co-committed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
		| @@ -10,6 +10,18 @@ import ( | ||||
| 	"code.gitea.io/sdk/gitea" | ||||
| ) | ||||
|  | ||||
| // OrganizationDetails prints details of an org with formatting | ||||
| func OrganizationDetails(org *gitea.Organization) { | ||||
| 	outputMarkdown(fmt.Sprintf( | ||||
| 		"# %s\n%s\n\n- Visibility: %s\n- Location: %s\n- Website: %s\n", | ||||
| 		org.UserName, | ||||
| 		org.Description, | ||||
| 		org.Visibility, | ||||
| 		org.Location, | ||||
| 		org.Website, | ||||
| 	), "") | ||||
| } | ||||
|  | ||||
| // OrganizationsList prints a listing of the organizations | ||||
| func OrganizationsList(organizations []*gitea.Organization, output string) { | ||||
| 	if len(organizations) == 0 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Norwin
					Norwin