docs: improved readme file
This commit is contained in:
parent
b42bca8e99
commit
da1c88be2c
1 changed files with 24 additions and 12 deletions
36
readme.md
36
readme.md
|
|
@ -2,20 +2,32 @@
|
||||||
This project is inspired from the python application called gitlabber (https://github.com/ezbz/gitlabber).
|
This project is inspired from the python application called gitlabber (https://github.com/ezbz/gitlabber).
|
||||||
It is mainly to learn Golang. But also to make something that specifically solves my problem. :)
|
It is mainly to learn Golang. But also to make something that specifically solves my problem. :)
|
||||||
|
|
||||||
The program can download and update all repositories you have access to on a Gitlab server.
|
The program can clone and pull all repositories you have access to on a selfhosted or SaaS provided Gitlab server.
|
||||||
This works for bot gitlab.com and a selfhosted Gitlab instance. It only supports the HTTP method.
|
It only supports the HTTP access method.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
```
|
```
|
||||||
Usage: gogitlabber
|
Usage of gogitlabber:
|
||||||
--archived=(any|excluded|only)
|
-archived string
|
||||||
--destination=$HOME/Documents
|
To include archived repositories (any|excluded|exclusive)
|
||||||
--gitlab-url=gitlab.com
|
example: -archived=any
|
||||||
--gitlab-token=<supersecrettoken>
|
env = GOGITLABBER_ARCHIVED
|
||||||
|
(default "excluded")
|
||||||
|
|
||||||
You can also set these environment variables:
|
-destination string
|
||||||
GOGITLABBER_ARCHIVED=(any|excluded|only)
|
Specify where to check the repositories out
|
||||||
GOGITLABBER_DESTINATION=$HOME/Documents
|
example: -destination=$HOME/repos
|
||||||
GITLAB_API_TOKEN=<supersecrettoken>
|
env = GOGITLABBER_DESTINATION
|
||||||
GITLAB_URL=gitlab.com
|
(default "$HOME/Documents")
|
||||||
|
|
||||||
|
-gitlab-api-token string
|
||||||
|
Specify GitLab API token
|
||||||
|
example: -gitlab-api=glpat-xxxx
|
||||||
|
env = GITLAB_API_TOKEN
|
||||||
|
|
||||||
|
-gitlab-url string
|
||||||
|
Specify GitLab host
|
||||||
|
example: -gitlab-url=gitlab.com
|
||||||
|
env = GITLAB_URL
|
||||||
|
(default "gitlab.com")
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue