@cj-ways/orgclone 0.1.3 → 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.
Files changed (3) hide show
  1. package/README.md +14 -6
  2. package/install.js +1 -1
  3. package/package.json +2 -1
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 (uses your existing git auth automatically)
18
- orgclone clone github my-org
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 gitlab my-group
21
+ orgclone clone my-group --gitlab
22
22
 
23
23
  # Preview what would be cloned
24
- orgclone clone github my-org --dry-run
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 <platform> <name> [options]
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/install.js CHANGED
@@ -10,7 +10,7 @@ const { execSync } = require("child_process");
10
10
  const zlib = require("zlib");
11
11
 
12
12
  const REPO = "cj-ways/orgclone";
13
- const VERSION = require("./package.json").version;
13
+ const VERSION = require("./package.json").binaryVersion;
14
14
  const BIN_DIR = path.join(__dirname, "bin");
15
15
  const BIN_PATH = path.join(BIN_DIR, process.platform === "win32" ? "orgclone.exe" : "orgclone");
16
16
 
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@cj-ways/orgclone",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
+ "binaryVersion": "0.2.0",
4
5
  "description": "Clone entire GitHub organizations or GitLab groups with one command. Supports public and private repos, SSH, token auth, and config files.",
5
6
  "license": "MIT",
6
7
  "author": "cj-ways",