@cj-ways/orgclone 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -14
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,14 +17,18 @@ npm install -g @cj-ways/orgclone
|
|
|
17
17
|
# Clone a GitHub org (GitHub is the default)
|
|
18
18
|
orgclone clone my-org
|
|
19
19
|
|
|
20
|
+
# Interactively pick which repos to clone
|
|
21
|
+
orgclone clone my-org --pick
|
|
22
|
+
|
|
20
23
|
# Clone a GitLab group
|
|
21
24
|
orgclone clone my-group --gitlab
|
|
22
25
|
|
|
23
26
|
# Preview what would be cloned
|
|
24
27
|
orgclone clone my-org --dry-run
|
|
25
28
|
|
|
26
|
-
#
|
|
27
|
-
orgclone default gitlab
|
|
29
|
+
# Change defaults permanently
|
|
30
|
+
orgclone default platform gitlab
|
|
31
|
+
orgclone default dest ~/projects
|
|
28
32
|
```
|
|
29
33
|
|
|
30
34
|
Repos land in `~/Desktop/my-org/` by default. Run it again on the same folder and it `git pull`s everything — no re-cloning.
|
|
@@ -47,22 +51,25 @@ Repos land in `~/Desktop/my-org/` by default. Run it again on the same folder an
|
|
|
47
51
|
```
|
|
48
52
|
orgclone clone <name> [options]
|
|
49
53
|
|
|
50
|
-
name
|
|
54
|
+
name org name (GitHub) or group path (GitLab)
|
|
51
55
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-t, --token
|
|
55
|
-
-d, --dest
|
|
56
|
-
-e, --exclude
|
|
56
|
+
--gitlab Use GitLab instead of the default platform
|
|
57
|
+
--pick Interactively select which repos to clone
|
|
58
|
+
-t, --token API token (or set GITHUB_TOKEN / GITLAB_TOKEN)
|
|
59
|
+
-d, --dest Destination folder (default: ~/Desktop/<name>)
|
|
60
|
+
-e, --exclude Comma-separated repo names to skip
|
|
57
61
|
--skip-archived Skip archived repositories
|
|
58
|
-
--
|
|
59
|
-
--
|
|
60
|
-
|
|
62
|
+
--gitlab-url Self-hosted GitLab URL (default: https://gitlab.com)
|
|
63
|
+
--dry-run List repos without cloning
|
|
64
|
+
|
|
65
|
+
orgclone default <setting> <value>
|
|
61
66
|
|
|
62
|
-
|
|
67
|
+
platform github or gitlab
|
|
68
|
+
dest path to clone into (e.g. ~/projects)
|
|
63
69
|
|
|
64
|
-
|
|
65
|
-
|
|
70
|
+
Examples:
|
|
71
|
+
orgclone default platform gitlab
|
|
72
|
+
orgclone default dest ~/projects
|
|
66
73
|
```
|
|
67
74
|
|
|
68
75
|
---
|
|
@@ -97,6 +104,7 @@ Run `orgclone init` to generate `~/.orgclone.yml`:
|
|
|
97
104
|
|
|
98
105
|
```yaml
|
|
99
106
|
default_dest: ~/Desktop
|
|
107
|
+
default_platform: github # or gitlab
|
|
100
108
|
|
|
101
109
|
github:
|
|
102
110
|
token: ghp_xxx # or: export GITHUB_TOKEN=ghp_xxx
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cj-ways/orgclone",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"binaryVersion": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"binaryVersion": "0.5.0",
|
|
5
5
|
"description": "Clone entire GitHub organizations or GitLab groups with one command. Supports public and private repos, SSH, token auth, and config files.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "cj-ways",
|