Skip to content

Commit a7e3216

Browse files
docs: Add readme
1 parent ec77463 commit a7e3216

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
# What
3+
4+
5+
# Why
6+
Neither is Git a viable backup nor will GitHub/Gitlab keep your repos around forever. This tool helps you auto-discover and regularly pull your git repositories from Git services such as GitHub and GitLab.
7+
8+
# Demo
9+
![demo.gif](demo.gif)
10+
11+
# CLI Example
12+
```
13+
usage: cmd.py [-h] [-c CONFIG] [-n] -d DEST [-g PUSHGATEWAY | -f PROM_FILE] {github,gitlab} ...
14+
15+
Clones / pulls git repositories
16+
17+
positional arguments:
18+
{github,gitlab}
19+
github Github service
20+
gitlab Gitlab service
21+
22+
optional arguments:
23+
-h, --help show this help message and exit
24+
-c CONFIG, --config CONFIG
25+
Config
26+
-n, --dry-run Only simulate actions
27+
-d DEST, --dest DEST Destination to store the repositories
28+
-g PUSHGATEWAY, --pushgateway PUSHGATEWAY
29+
Prometheus pushgateway URL
30+
-f PROM_FILE, --prom-file PROM_FILE
31+
Prometheus nodeexporter textfile directory
32+
```
33+
34+
# Configuration
35+
36+
````json
37+
[
38+
{
39+
"service": "github",
40+
"username": "soerenschneider",
41+
"repo_denylist": [
42+
"lootorganizer"
43+
]
44+
},
45+
{
46+
"service": "gitlab",
47+
"username": "soerenschneider",
48+
"repo_allowlist": [
49+
"prometheus-rules-edge"
50+
]
51+
}
52+
]
53+
````

demo.gif

1.14 MB
Loading

0 commit comments

Comments
 (0)