- commit
- b4400fe5327129253ee49b07d76abdfefc2e3c31
- parent
- 523a8cdf4146e5ede2fba75bf944ccbca2c830df
- author
- Dami <dami.etoile@gmail.com>
@@ -4,20 +4,49 @@
44 55 ### Build & Run66 ```bash7-just # build with version from git tags7+just # default: build with version from git tags8+just build # explicit build recipe89 just run # build and run910 just install # install to $GOPATH/bin1011 just clean # remove binary and dist/12+just vhs # regenerate all GIF previews under vhs/1113 ```1214 Without `just`: `go build -ldflags "-X github.com/FelineStateMachine/puzzletea/cmd.Version=$(git describe --tags --always --dirty)" -o puzzletea`1315 14-### CLI Seed Flags16+### CLI Play Workflows17+```bash18+puzzletea # launch interactive menu19+puzzletea new nonogram medium # start game directly20+puzzletea continue amber-falcon # resume by save name21+puzzletea list # list non-abandoned saves22+puzzletea list --all # include abandoned saves23+```24+25+Root flag shortcuts are supported:26+```bash27+puzzletea --new nonogram:medium28+puzzletea --continue amber-falcon29+puzzletea --set-seed issue-0130+puzzletea --theme "Catppuccin Mocha"31+```32+33+### CLI Seed & Export Workflows1534 ```bash1635 puzzletea new --set-seed myseed # deterministic game/mode/puzzle selection1736 puzzletea new nonogram epic --with-seed s1 # deterministic puzzle in selected game/mode37+puzzletea new nonogram mini --export 6 -o nonogram-mini.jsonl38+puzzletea new sudoku --export 10 --with-seed z1 -o sudoku-pack.jsonl39+puzzletea export-pdf nonogram-mini.jsonl -o issue-01.pdf --shuffle-seed issue-011840 ```1941 - `--set-seed` cannot be combined with positional game/mode arguments.42+- `--set-seed` cannot be combined with root `--new`/`--continue`.43+- `--set-seed` cannot be combined with export flags (`--export` / `--output`).2044 - `--with-seed` is used with explicit game/mode arguments for mode-local reproducibility.45+- `new --export` requires a game arg; `--output` must end with `.jsonl` (stdout if omitted).46+- `export-pdf` accepts one or more JSONL files; default output is `<first-input>-print.pdf`.47+- `export-pdf --output` must end with `.pdf`; `--volume` must be `>= 1`.48+- `export-pdf` supports `--title`, `--header`, `--advert`, `--shuffle-seed`, and `--cover-color`.49+- `lightsout` has no print adapter, so `new lightsout --export ...` currently produces no records.2150 2251 ### Testing2352 ```bash@@ -3,7 +3,7 @@ package game
33 import (44 "testing"55 6- "github.com/go-pdf/fpdf"6+ "codeberg.org/go-pdf/fpdf"77 )88 99 type testPrintAdapter struct {@@ -6,7 +6,7 @@ require (
66 charm.land/bubbles/v2 v2.0.0-rc.177 charm.land/bubbletea/v2 v2.0.0-rc.288 charm.land/lipgloss/v2 v2.0.0-beta.3.0.20260212100304-e18737634dea9- github.com/go-pdf/fpdf v0.9.09+ codeberg.org/go-pdf/fpdf v0.11.11010 github.com/spf13/cobra v1.10.21111 modernc.org/sqlite v1.44.31212 )@@ -4,7 +4,7 @@ import (
44 _ "embed"55 "fmt"66 7- "github.com/go-pdf/fpdf"7+ "codeberg.org/go-pdf/fpdf"88 )99 1010 const (@@ -3,7 +3,7 @@ package pdfexport
33 import (44 "math"55 6- "github.com/go-pdf/fpdf"6+ "codeberg.org/go-pdf/fpdf"77 )88 99 const (