xonecas.io
725
Ds

diff-scope / commit 43af244

feat: add CLI install flow and README preview

xonecas2026-04-16 43af244a800384c6471dccc764a5fe6b75d771e0 parent 61e2e72

4 files changed

README.md+22−0
@@ -2,6 +2,10 @@
22
33 A small terminal git diff viewer built with `cel-tui` and Bun.
44
5+## Preview
6+
7+![diff-scope preview](./preview.png)
8+
59 ## Current features
610
711 - scrollable diff view
@@ -15,6 +19,24 @@ A small terminal git diff viewer built with `cel-tui` and Bun.
1519 - adjustable auto-refresh interval with `PageUp` / `PageDown`
1620 - help/about modal with `?`
1721
22+## Install locally
23+
24+Requires [Bun](https://bun.sh) and `git`.
25+
26+From this repo:
27+
28+```bash
29+bun install
30+bun link
31+```
32+
33+Then run it inside any git repo:
34+
35+```bash
36+cd /path/to/git/repo
37+diff-scope
38+```
39+
1840 ## Run
1941
2042 ```bash
index.ts+2−0
@@ -0,0 +1,2 @@
1+#!/usr/bin/env bun
2+import "./src/index.ts";
package.json+3−0
@@ -4,6 +4,9 @@
44 "private": true,
55 "type": "module",
66 "module": "src/index.ts",
7+ "bin": {
8+ "diff-scope": "./index.ts"
9+ },
710 "scripts": {
811 "dev": "bun --watch src/index.ts",
912 "start": "bun run src/index.ts",
preview.png+0−0
Binary file, not shown.