API image is Go-only (compose target api). Python rebuild is profile index. bin/cgo/zig pins Zig 0.14.1, liblbug, and tokenizers.
24 lines
596 B
Go
Executable File
24 lines
596 B
Go
Executable File
//usr/bin/env go run -tags=system_ladybug,brain_get "$0" "$@"; exit
|
|
//go:build cgo && system_ladybug && brain_get
|
|
//
|
|
// bin/brain/get.go - read one leaf by id.
|
|
//
|
|
// ./bin/brain/get.go <id>
|
|
// ./bin/brain/get.go <id> --body
|
|
// ./bin/brain/get.go <id> --json
|
|
//
|
|
// Needs CGO + libladybug. Python bin/kb/get is the CI fallback (no cgo).
|
|
// CGO compiler is Zig (`eval "$(bin/cgo/zig env)"`), not gcc.
|
|
// NOTE: never run `gofmt -w` on this file — it breaks the shebang.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/eSlider/2dph/internal/brain"
|
|
)
|
|
|
|
func main() {
|
|
os.Exit(brain.MainGet(os.Args[1:]))
|
|
}
|