Skip to content

Parameter consistency: change URL to Uri #460

@fsackur

Description

@fsackur

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 (not URL)
    • I want the param type to be [uri] (as for Invoke-RestMethod / Invoke-WebRequest),
  • 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 and RegisterPSResourceRepository.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},

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions