Early stages, work in progress.
It is currently able to list users and groups recursively.
Install with go get github.com/tommyknows/gitlab-cli
or through packa.
Then, setup gitlab-cli:
- 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. - Ensure that the instance has been created by running
gitlab-cli instance list
- 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>
- Use it.
Clone a whole group recursively:
gitlab-cli proj clone <group>
Because I'm lazy (and you probably are too), there are some abbreviations defined on commands:
- ✅Group-clone: check out a Gitlab-group recursively on the local Filesystem
- ❌Browse Merge Requests, merge them?, comment?
- 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
- Test the