-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule-Usage-Examples.ps1
More file actions
20 lines (15 loc) · 997 Bytes
/
Module-Usage-Examples.ps1
File metadata and controls
20 lines (15 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Remove-Module GitHub*
Import-Module "C:\Projekte\ToolingDeployment\GitHub\GitHub.psm1"
# Get a list of repositories from the clever code cravers
Get-GitHubRepository -UserOrOrganization "CleverCodeCravers"
# Get a list of repositories from stho32 - Multipaging is required
Get-GitHubRepository -UserOrOrganization "stho32"
# Get a list of releases from the visual pair coding repository
Get-GitHubRelease -UserOrOrganization "CleverCodeCravers" -Repository "VisualPairCoding"
# Get information about the latest release
Get-GitHubRelease -UserOrOrganization "CleverCodeCravers" -Repository "VisualPairCoding" -Latest
Get-GitHubRelease -UserOrOrganization "CleverCodeCravers" -Repository "LittleScriptBuddy" -Latest
# Get a list of release assets
$release = Get-GitHubRelease -UserOrOrganization "CleverCodeCravers" -Repository "VisualPairCoding" -Latest
$asset = Get-GitHubReleaseAsset -Owner "CleverCodeCravers" -Repository "VisualPairCoding" -Tag $release.id
$asset.browser_download_url