git0 0.2.1 → 0.2.3

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.
@@ -19,6 +19,7 @@ const githubHelpUrl = 'https://github.com/settings/personal-access-tokens/new'
19
19
  grab('', {
20
20
  setDefaults: true,
21
21
  debug: false,
22
+ timeout: 5000,
22
23
  onError: (error) => {
23
24
  if (error.includes('403')) {
24
25
  log(chalk.red('Rate limit exceeded. Please set env var GITHUB_TOKEN. Help:\n' + githubHelpUrl));
@@ -463,6 +464,8 @@ function runCommand(cmd) {
463
464
  }
464
465
 
465
466
  export async function searchRepositories(query) {
467
+ printLogo()
468
+
466
469
  try {
467
470
  const response = await grab(GITHUB_API, {
468
471
  q: `${query} in:name`,
@@ -538,9 +541,9 @@ export async function downloadRepo(repo) {
538
541
  response = await grab(url.replace("/master", "/main"), params);
539
542
 
540
543
 
541
- setTimeout(() => {
544
+ // setTimeout(() => {
542
545
  openInIDE(extractPath);
543
- }, 1000);
546
+ // }, 1);
544
547
  installDependencies(extractPath);
545
548
  } catch (error) {
546
549
  console.error(chalk.red('Download failed:'), error.message);
@@ -560,7 +563,6 @@ function getAvailableDirectoryName(basePath) {
560
563
  }
561
564
 
562
565
  async function main() {
563
- printLogo()
564
566
  const args = process.argv.slice(2);
565
567
  if (!args.length) {
566
568
  log(chalk.yellow('Usage: gg <search-query>'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git0",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "A CLI manager for downloading GitHub repos.",
5
5
  "author": "vtempest",
6
6
  "license": "MIT",
@@ -23,8 +23,9 @@
23
23
  "publish:npm": "npm version patch && npm publish --access public"
24
24
  },
25
25
  "type": "module",
26
+ "main": "./git0.js",
26
27
  "bin": {
27
- "gg": "./gg.js",
28
- "git0": "./gg.js"
28
+ "gg": "./git0.js",
29
+ "git0": "./git0.js"
29
30
  }
30
31
  }
package/readme.md CHANGED
@@ -26,20 +26,10 @@
26
26
  </p>
27
27
 
28
28
 
29
- # Git0: GitHub Zero-Step Repo Downloader
29
+ # Git0: Git Package Manager with Zero Steps
30
30
 
31
- A fast and smart CLI tool to search, download source & releases for your system, and instantly set up GitHub repositories with automatic dependency installation and IDE integration.
32
-
33
-
34
- ## 🚀 Installation
35
-
36
- ```bash
37
- npm install -g git0
38
- ```
39
-
40
- ```bash
41
- bun install -g git0
42
- ```
31
+ CLI tool to search, download source & releases for your system, and
32
+ instantly set up GitHub repositories with automatic dependency installation and code editor opening.
43
33
 
44
34
  ![livepreview](https://i.imgur.com/Io3ukRC.gif)
45
35
  ![preview](https://i.imgur.com/K22NiBq.png)
@@ -61,6 +51,10 @@ bun install -g git0
61
51
 
62
52
  ### Search and Download
63
53
  ```bash
54
+ # install in bun or node
55
+ npm i -g git0
56
+ bun i -g git0
57
+
64
58
  # Search for repositories by name
65
59
  gg react starter
66
60
 
@@ -77,7 +71,7 @@ npx git0 react starter
77
71
 
78
72
  ### Supported Project Types
79
73
 
80
- GG automatically detects and sets up the following project types:
74
+ `git0` automatically detects and sets up the following project types:
81
75
 
82
76
  | Project Type | Detection | Installation |
83
77
  |-------------|-----------|-------------|
@@ -89,7 +83,7 @@ GG automatically detects and sets up the following project types:
89
83
 
90
84
  ### Supported IDEs
91
85
 
92
- GG automatically detects and opens projects in your preferred IDE:
86
+ `git0` automatically detects and opens projects in your preferred IDE:
93
87
 
94
88
  - **Cursor** (`cursor`)
95
89
  - **Windsurf** (`windsurf`)
@@ -117,7 +111,7 @@ Without a token, you're limited to 60 requests per hour. With a token, you get 5
117
111
  4. **IDE is launched** automatically (if available)
118
112
  5. **Development server starts** (for Node.js projects)
119
113
 
120
- If a directory with the same name exists, GG automatically appends a number (e.g., `react-2`, `react-3`).
114
+ If a directory with the same name exists, `git0` automatically appends a number (e.g., `react-2`, `react-3`).
121
115
 
122
116
  ## 🎉 Why GG?
123
117