File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function Invoke-SourcegraphApiRequest {
3333 [Parameter (Position = 1 )]
3434 $Variables = @ {},
3535
36- [string ] $Endpoint = ' https://sourcegraph.com' ,
36+ [Uri ] $Endpoint = ' https://sourcegraph.com' ,
3737
3838 [string ] $Token
3939 )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function Get-SourcegraphRepository {
3838 [string ] $SortBy = ' REPOSITORY_NAME' ,
3939 [switch ] $Descending ,
4040
41- [string ] $Endpoint = ' https://sourcegraph.com' ,
41+ [Uri ] $Endpoint = ' https://sourcegraph.com' ,
4242 [ValidateNotNullOrEmpty ()]
4343 [string ] $Token
4444 )
@@ -75,4 +75,4 @@ function Get-SourcegraphRepository {
7575 }
7676 }
7777}
78- Set-Alias Get-SrcRepositories Get-SourcegraphRepositories
78+ Set-Alias Get-SrcRepository Get-SourcegraphRepository
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ function New-SourcegraphUser {
1717 #>
1818 [CmdletBinding (SupportsShouldProcess )]
1919 param (
20- [string ] $Endpoint = ' https://sourcegraph.com' ,
20+ [Uri ] $Endpoint = ' https://sourcegraph.com' ,
2121
2222 [ValidateNotNullOrEmpty ()]
2323 [Parameter (Mandatory )]
@@ -54,7 +54,7 @@ function Get-SourcegraphUser {
5454 #>
5555 [CmdletBinding (SupportsPaging )]
5656 param (
57- [string ] $Endpoint = ' https://sourcegraph.com' ,
57+ [Uri ] $Endpoint = ' https://sourcegraph.com' ,
5858 [string ] $Username ,
5959 [string ] $Query ,
6060 [string ] $Tag ,
You can’t perform that action at this time.
0 commit comments