mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2026-07-21 19:05:39 +02:00
* Plan fsnotify migration and docs updates Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com> * Refactor watch mode to fsnotify and add agent docs Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com> * Fix errcheck violations in command and converter tests Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com> * Complete validation for fsnotify and lint fixes Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Belphemur <197810+Belphemur@users.noreply.github.com>
34 lines
538 B
Markdown
34 lines
538 B
Markdown
# Development Guide
|
|
|
|
## Build
|
|
|
|
```bash
|
|
go build -o cbzconverter ./cmd/cbzoptimizer
|
|
```
|
|
|
|
## Encoder setup (required for WebP conversion)
|
|
|
|
```bash
|
|
go build -tags encoder_setup -o encoder-setup ./cmd/encoder-setup
|
|
./encoder-setup
|
|
```
|
|
|
|
## Test
|
|
|
|
```bash
|
|
go test ./...
|
|
```
|
|
|
|
## Lint
|
|
|
|
```bash
|
|
golangci-lint run
|
|
```
|
|
|
|
## Important behavior
|
|
|
|
- Input supports CBZ and CBR.
|
|
- Output is always CBZ.
|
|
- `--override` replaces source CBZ files and removes source CBR files after successful conversion.
|
|
- Watch mode performs recursive directory monitoring.
|