@cj-ways/orgclone 0.1.4 → 0.2.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 +14 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,14 +14,17 @@ npm install -g @cj-ways/orgclone
|
|
|
14
14
|
## Quick Start
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
# Clone a GitHub org (
|
|
18
|
-
orgclone clone
|
|
17
|
+
# Clone a GitHub org (GitHub is the default)
|
|
18
|
+
orgclone clone my-org
|
|
19
19
|
|
|
20
20
|
# Clone a GitLab group
|
|
21
|
-
orgclone clone
|
|
21
|
+
orgclone clone my-group --gitlab
|
|
22
22
|
|
|
23
23
|
# Preview what would be cloned
|
|
24
|
-
orgclone clone
|
|
24
|
+
orgclone clone my-org --dry-run
|
|
25
|
+
|
|
26
|
+
# Switch default platform to GitLab permanently
|
|
27
|
+
orgclone default gitlab
|
|
25
28
|
```
|
|
26
29
|
|
|
27
30
|
Repos land in `~/Desktop/my-org/` by default. Run it again on the same folder and it `git pull`s everything — no re-cloning.
|
|
@@ -42,12 +45,12 @@ Repos land in `~/Desktop/my-org/` by default. Run it again on the same folder an
|
|
|
42
45
|
## All Options
|
|
43
46
|
|
|
44
47
|
```
|
|
45
|
-
orgclone clone <
|
|
48
|
+
orgclone clone <name> [options]
|
|
46
49
|
|
|
47
|
-
platform github or gitlab
|
|
48
50
|
name org name (GitHub) or group path (GitLab)
|
|
49
51
|
|
|
50
52
|
Options:
|
|
53
|
+
--gitlab Use GitLab instead of the default platform (GitHub)
|
|
51
54
|
-t, --token API token — or set GITHUB_TOKEN / GITLAB_TOKEN env var
|
|
52
55
|
-d, --dest Destination folder (default: ~/Desktop/<name>)
|
|
53
56
|
-e, --exclude Comma-separated repo names to skip
|
|
@@ -55,6 +58,11 @@ Options:
|
|
|
55
58
|
--ssh Use SSH URLs instead of HTTPS
|
|
56
59
|
--gitlab-url Self-hosted GitLab URL (default: https://gitlab.com)
|
|
57
60
|
--dry-run List repos without cloning
|
|
61
|
+
|
|
62
|
+
orgclone default <platform>
|
|
63
|
+
|
|
64
|
+
Change the default platform permanently (saved to ~/.orgclone.yml)
|
|
65
|
+
Example: orgclone default gitlab
|
|
58
66
|
```
|
|
59
67
|
|
|
60
68
|
---
|
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.2.0",
|
|
4
|
+
"binaryVersion": "0.2.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",
|