- Notifications
You must be signed in to change notification settings - Fork673
Closed
Description
Description of the problem, including code/CLI snippet
I've wrapped the python gitlab CLI in somepowershell tooling
Relevant snippet:
functionMove-GitLabProject { [CmdletBinding()]param ( [Parameter(Position=0,Mandatory=$true)] [string]$ProjectId, [Parameter(Position=1,Mandatory=$true)] [string]$DestinationGroup, [switch] [Parameter(Mandatory=$false)]$WhatIf=$false )$SourceProject=Get-GitLabProject-ProjectId$ProjectId$Group=Get-GitLabGroup-GroupId$DestinationGroupif ($WhatIf) {Write-Host"WhatIf: Moving '$($SourceProject.Name)' (project id:$($SourceProject.Id)) to '$($Group.FullPath)' (group id:$($Group.Id))" }else { gitlab group transfer-project--id$Group.Id--to-project-id$SourceProject.Id }}
Expected Behavior
Recommend that the parameters be renamed:
--id
->--to-group-id
--to-project-id
->--project-id
traditionally,to
denotes a destination, not a source.
Actual Behavior
Trial and error and code inspection before realizing I had the parameters backwards.
Specifications
- python-gitlab version: 2.8.0
- API version you are using (v3/v4): v4
- Gitlab server version (or gitlab.com): 13.10.3 (Enterprise Edition)