Skip to content

Add project view command

Gabriel Mazetto requested to merge github/fork/brodock/brodock/view-repo into trunk

Description Adds glab project view [repository] [flags] command.

View, will render project name, description and README. Optionally you can pass --web and it will open the project in your default browser instead.

If you don't pass a repository path, it will try to infer based on current git repository. If it finds, it will also use current branch to retrieve the README from, or to open the browser project page within that branch.

It also accepts just a repository name without a namespace, in which it will use your own username as the namespace.

Ex: glab project view glab will open the brodock/glab in my case.

Related Issue Resolves #777 (closed)

How Has This Been Tested?

I've only tested this manually. Will work on adding go tests.

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