chris-peterson / pwsh-gitlab

:computer: PowerShell module for GitLab
MIT License
22 stars 10 forks source link

Rename gitlab project should implicitly accept project ID #36

Closed chris-peterson closed 2 years ago

chris-peterson commented 2 years ago

Current Behavior

Rename-GitlabProject 'mygroup/myproject' -NewName 'new-project-name'
Rename-GitlabProject: A positional parameter cannot be found that accepts argument 'mygroup/myproject'.

Expected Behavior

ProjectId should be inferred by positional placement

chris-peterson commented 2 years ago

-NewName should probably also be implicit

chris-peterson commented 2 years ago

this is actually kind of tricky given that project can be omitted. the cleaner way to invoke is probably: Get-GitlabProject <params> | Rename-GitlabProject 'newname' which works now (no changes needed)