Added finding projects by id and name using an indexer.
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
 | 
			
		||||
from devops import Organization, Project, Repository, Item, DEVOPS_SCOPE
 | 
			
		||||
from azure.identity import DefaultAzureCredential
 | 
			
		||||
from json import dumps
 | 
			
		||||
import tests
 | 
			
		||||
from devops import Organization
 | 
			
		||||
org = Organization("https://dev.azure.com/mcovsandbox")
 | 
			
		||||
 | 
			
		||||
# print(org.projects["bafe0cf1-6c97-4088-864a-ea6dc02b2727"].repositories["feac266f-84d2-41bc-839b-736925a85eaa"].items["/generate-pat.py"])
 | 
			
		||||
print(org["ADO Sandbox"])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user