greptile 2.3.0 → 3.0.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 +62 -0
- package/dist/greptile.js +467 -0
- package/package.json +51 -20
- package/bin/greptile-fix.js +0 -10
- package/build-app.sh +0 -81
- package/com.greptile.health.plist +0 -23
- package/greptile-fix +0 -238
- package/greptile-fix.applescript +0 -63
- package/health-server.js +0 -228
- package/postinstall.sh +0 -77
- package/preuninstall.sh +0 -23
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# greptile
|
|
2
|
+
|
|
3
|
+
CLI for [Greptile](https://greptile.com) code reviews.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
brew install greptileai/greptile/greptile
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
macOS only for now.
|
|
12
|
+
|
|
13
|
+
## Sign in
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
greptile login
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Opens your browser, completes the OAuth flow, and stores credentials at `~/.greptile/auth.json` (mode `0600`). Tokens refresh transparently on every authenticated command. Sign out with `greptile logout`.
|
|
20
|
+
|
|
21
|
+
## Run a review
|
|
22
|
+
|
|
23
|
+
In a git checkout:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
greptile review
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Reviews `HEAD` against your repo's default branch (auto-detected). Override with `--base <branch>`.
|
|
30
|
+
|
|
31
|
+
Resume an in-flight or completed review:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
greptile review view <runId>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Multi-organization users
|
|
38
|
+
|
|
39
|
+
If you belong to multiple Greptile organizations, set `GREPTILE_TENANT` to the slug shown in your dashboard URL (e.g. `acme-corp` in `app.greptile.com/acme-corp`). List your memberships with `greptile whoami`.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
export GREPTILE_TENANT=acme-corp
|
|
43
|
+
greptile review
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Environment variables
|
|
47
|
+
|
|
48
|
+
| Variable | Required | Purpose |
|
|
49
|
+
| ----------------- | -------- | ----------------------------------------- |
|
|
50
|
+
| `GREPTILE_TENANT` | no | Tenant externalId for multi-org users. |
|
|
51
|
+
| `NO_COLOR` | no | Disable ANSI color. |
|
|
52
|
+
| `FORCE_COLOR` | no | Force ANSI color in non-TTY environments. |
|
|
53
|
+
| `COLUMNS` | no | Override wrap width (capped at 80). |
|
|
54
|
+
|
|
55
|
+
## Exit codes
|
|
56
|
+
|
|
57
|
+
| Code | Meaning |
|
|
58
|
+
| ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
59
|
+
| `0` | Review ran successfully. |
|
|
60
|
+
| `1` | Review could not run (auth failure, preflight failure, HTTP error, repo not onboarded, diff too large, timeout, entitlement denied, quota exceeded). |
|
|
61
|
+
| `2` | CLI misuse (not in a git repo, invalid run ID, unknown flag, invalid `--base`). |
|
|
62
|
+
| `130` | Interrupted via SIGINT. |
|