ngetchell / PSGitLab

An interface for administering GitLab from the PowerShell command line.
MIT License
72 stars 42 forks source link

Search Projects by Name #216

Open ngetchell opened 4 years ago

ngetchell commented 4 years ago

1. Add a Name parameter to get by name.

2. Describe Your Environment

Operating System and PowerShell version:

Name                           Value
----                           -----
PSVersion                      6.2.3
PSEdition                      Core
GitCommitId                    6.2.3
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

3. Expected Behavior

Get-GitLabProject -Name PSGitLab

4.Current Behavior

> Get-GitLabProject -Name PSGitLab
Get-GitLabProject : A parameter cannot be found that matches parameter name 'Name'.
At line:1 char:19
+ Get-GitLabProject -Name PSGitLab
+                   ~~~~~
+ CategoryInfo          : InvalidArgument: (:) [Get-GitLabProject], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Get-GitLabProject

5. Possible Solution

There is no name parameter on the API call. Maybe alias search?

6. Context

Improve general discoverability.