Skip to content

feat: Display Raw Path in Project Search

Description

This is a small suggestion to improve the efficiency when copy/pasting project paths from the project search command.

Similar to the changes in !1033 (merged), this will display the unmodified/raw project path in the search list.

For instance, it facilitates copy/pasting the result of that search query to a subsequent glab <SOME_CMD> ls --repo <REPO> command.

In that sense, from a CLI perspective, the unmodified p.PathWithNamespace without any spaces in between the delimiter / is more practical/useful.

Related Issues

Relates to #1056 (closed)

How has this been tested?

There were no tests defined yet for the search command, so I built and tested as follows.

make
GITLAB_HOST=gitlab.com ./bin/glab repo search -s cli
Showing results for "cli"
�  viktomas/cli  1 stars 1 forks 0 issues     updated about 1 month ago 
   A GitLab CLI tool bringing GitLab...

... (abbreviated)

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)

Merge request reports