-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Description
Summary of the new feature / enhancement
As a PS user who benefits from consistency in parameter names across modules,
- when I run
Register-PSResourceRepository
- I want to provide the URL to a parameter called
Uri
(notURL
) - I want the param type to be
[uri]
(as forInvoke-RestMethod
/Invoke-WebRequest
),
- I want to provide the URL to a parameter called
- so that
- I can discover the usage of the command more easily
- I can re-use splats
- I get validation by casting string to uri
Proposed technical implementation details (optional)
- Simple rename in
src/code/SetPSResourceRepository.cs
andRegisterPSResourceRepository.cs
- I propose no alias; we're still pre-release
irm
/iwr
declare the param as follows:
[Parameter(Mandatory=$true, Position=0)]
[ValidateNotNullOrEmpty()]
[uri]
${Uri},
JustinGrote and ThomasNieto