File tree Expand file tree Collapse file tree 6 files changed +11
-107
lines changed Expand file tree Collapse file tree 6 files changed +11
-107
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# GitLab CLI
2
2
3
- This provides:
4
-
5
- 1 . A docker image containing [ gitlab ruby gem] [ gem ] installed: ` augustohp/ore-gitlab-cli `
6
- 1 . A shell script ` gitlab ` to be executed as the [ gem] [ ] but using Docker
3
+ Wraps a [ docker image] [ ] containing [ gitlab ruby gem] [ gem ] to access
4
+ [ Gitlab's API] [ api ] through the _ command line_ .
7
5
8
6
[ gem ] : https://github.com/narkoz/gitlab
7
+ [ docker image ] : https://hub.docker.com/r/augustohp/gitlab-cli
8
+ [ api ] : https://docs.gitlab.com/ee/api/
9
9
10
- ## Usage
11
-
12
- Requirements:
10
+ You just need:
13
11
14
12
* [ Docker] ( https://docker.io )
15
- * [ JQ] ( https://stedolan.github.io/jq/ )
13
+ * [ JQ] ( https://stedolan.github.io/jq/ ) (optional)
14
+
15
+ ## Usage
16
16
17
17
Clone this repository with [ homesick] [ ] or [ homeshick] [ ] and be sure that
18
18
` $HOME/bin ` is inside your ` $PATH ` , you will able to:
@@ -40,12 +40,3 @@ Some recipes for you to use:
40
40
` $ gitlab projects --json | jq '.result[] | .ssh_url_to_repo' | trim `
41
41
* List all repositories from an organization (limited to 250 max)
42
42
` $ gitlab group_projects --json gitlab-org "{per_page: '250'}" | jq '.result[] | .path_with_namespace' | trim `
43
-
44
- ## Development
45
-
46
- By * default* the image passes commands after prefixing a ` gitlab ` on them.
47
- Output is unfiltered. A ` Makefile ` is provided to avoid manual tasks.
48
-
49
- $ make
50
- $ make build
51
- $ make push
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
#
3
- # Substitutes `php` binary for one executed inside a Docker container .
3
+ # Exposes Gitlab API's through a simple shell script, using Docker .
4
4
#
5
5
# Author: Augusto Pascutti <[email protected] >
6
6
# vim: ft=sh noet:
7
7
8
8
# Configuration
9
- ORE_IMAGE=" augustohp/ore- gitlab-cli"
9
+ ORE_IMAGE=" augustohp/gitlab-cli"
10
10
ORE_VERSION=" latest"
11
- ORE_HOME=${ORE_HOME:- $HOME / .ore-home }
11
+ ORE_HOME=${ORE_HOME:- $HOME / .ore/ gitlab-cli }
12
12
GITLAB_API_ENDPOINT=${GITLAB_API_ENDPOINT:- " https://gitlab.com/api/v4" }
13
13
GITLAB_API_PRIVATE_TOKEN=${GITLAB_API_PRIVATE_TOKEN:- " " }
14
14
You can’t perform that action at this time.
0 commit comments