apps/sipp/README.md 1.3 K raw
1
# sipp
2
3
Code sharing. Single binary with subcommands:
4
5
- `sipp server [--host H] [--port P]` — web server (HTTP + admin + API +
6
  syntax highlight via `github.com/alecthomas/chroma/v2`).
7
- `sipp tui` — interactive Bubble Tea TUI.
8
- `sipp auth` — save remote URL + API key to config.
9
- `sipp <file>` — upload a snippet to a remote instance via the JSON API.
10
11
## Install
12
13
**Homebrew:**
14
15
```bash
16
brew install stevedylandev/tap/sipp
17
```
18
19
**Curl install (Linux/macOS):**
20
21
```bash
22
curl -fsSL https://raw.githubusercontent.com/stevedylandev/andromeda/main/install.sh | sh -s -- sipp
23
```
24
25
**PowerShell (Windows):**
26
27
```powershell
28
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/stevedylandev/andromeda/main/install.ps1))) sipp
29
```
30
31
**Prebuilt binary:** Grab the right archive from the [releases page](https://github.com/stevedylandev/andromeda/releases?q=sipp%2F) and drop the binary somewhere on your `$PATH`.
32
33
**From source:**
34
35
```bash
36
git clone https://github.com/stevedylandev/andromeda
37
cd andromeda/apps/sipp
38
go build .
39
```
40
41
## Notes
42
43
- Syntax highlighting uses Chroma with the `monokai` style by default.
44
45
## Quickstart
46
47
```bash
48
cp .env.example .env
49
go run . server --port 3000
50
```
51
52
Upload a file:
53
54
```bash
55
SIPP_REMOTE_URL=http://localhost:3000 SIPP_API_KEY=$KEY \
56
  go run . ./path/to/file.go
57
```
58
59
See `.env.example` for env vars.