8000 GitHub - tommyknows/gitlab-cli: A CLI for Gitlab
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Oct 8, 2023. It is now read-only.

tommyknows/gitlab-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab-CLI

Early stages, work in progress.

It is currently able to list users and groups recursively.

Getting started

Install with go get github.com/tommyknows/gitlab-cli or through packa.

Then, setup gitlab-cli:

  1. Create an instance: gitlab-cli instance create <URL> <TOKEN> Currently, it would probably be enough to create an access token that has read_api, read_user and read_repository access. But for future functionality (and laziness), give it access to the whole API.
  2. Ensure that the instance has been created by running gitlab-cli instance list
  3. A default context has been generated automatically. However, you can create your own (setting the root to some kind of group, for example): gitlab-cli context create <name> <instance> <group>
  4. Use it.

Examples

Clone a whole group recursively:

gitlab-cli proj clone <group>

Abbreviations

Because I'm lazy (and you probably are too), there are some abbreviations defined on commands:

Goals

  • ✅Group-clone: check out a Gitlab-group recursively on the local Filesystem
  • ❌Browse Merge Requests, merge them?, comment?

TODOs

  • Improve documentation / command help
  • Improve existing code
    • Test the Clone function
    • Remove duplication from the cmd/ files
    • Probably move some code out of cmd/ and test it

About

A CLI for Gitlab

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0