godotgo tools¶
Operator scripts for this repository: verify, test, run, export and scaffold any project, plus the generators behind the committed assets and docs. Nothing here ships to users.
| Where | What |
|---|---|
check.sh |
Validate Godot projects headlessly: import, load every script, scene and resource inside a live SceneTree (so autoloads and class_names… |
claude.sh |
Drive Claude Code non-interactively against any project in this workspace |
docs_index.py |
Regenerate the docs index in docs/README.md from each document's summary line (--write, --check, --lint); vendored byte-identical from the bamr87 hub, never edited here |
docker.sh |
Run the workspace's tools inside Docker, so nothing but Docker is needed on the host and CI runs exactly what a laptop runs |
export.sh |
Export a release build of a game |
gen_assets.py |
Generate every placeholder asset in the workspace, deterministically |
gen_framework_api.py |
Generate docs/reference/framework-api.md from the framework's ## doc comments (--check fails when it is stale; tools/verify.sh warns on it) |
godot.sh |
Locate the Godot 4 binary and exec it with the given arguments |
godot_ai.sh |
Drive the Godot AI MCP bridge for a project in this workspace |
install_godot.sh |
Download the Godot release this workspace targets into .godot-bin/, so the host runs exactly the engine the container and CI run |
install_godot_ai.sh |
Install the Godot AI editor addon (github.com/hi-godot/godot-ai, MIT) into every project in this workspace, so a live editor can be driven… |
lib.sh |
Shared helpers for the GodotGo workspace tools: locate the root, enumerate Godot projects, resolve a friendly project name to a path, and the command-line contract below |
mm.sh |
Export a Material Maker material into the project with the Docker image |
new_game.sh |
Scaffold a new Godot game in games/ |
run.sh |
Play a game with a window |
smoke.sh |
Boot a game's main scene without a window and fail on any error or warning |
test.sh |
Run headless test suites (tests/unit/test_*.gd) with the framework's runner |
unwrap-prose.py |
Join soft-wrapped Markdown prose so each paragraph is one line (--check, --diff, --write), leaving code, tables, list structure, HTML and front matter as they are; the markdown-oneline workflow and the pre-commit hook run it; vendored byte-identical from the bamr87 hub, never edited here |
verify.sh |
The full verification pass: check, test and smoke every project (or the ones named) |
Command line¶
Every shell script here except godot.sh, which hands all its arguments to Godot, keeps the same contract (the Python generators keep their own usage):
-hor--helpprints the script's usage and exits 0 before it does anything: nothing is downloaded or written, and neither Godot nor Docker starts. The usage is the script's own header comment, so it cannot drift from the code. Indocker.shonly the first argument counts: after a command,--helpbelongs to that command, sotools/docker.sh verify --helpshowsverify.sh's usage.run.shis the same: everything after the project goes to Godot, sotools/run.sh leap --helpshows Godot's own help.- A usage error exits 2, with the reason and the usage on stderr: the code
lib.shalready gave an unknown project name. That covers an option missing its value, such as the bare--titleintools/new_game.sh dodge --title, which used to loop forever. It also covers an option the script does not define inverify,check,test,smoke,run,export,new_game,install_godotandinstall_godot_ai, where it used to be taken for a project name, a test filter or nothing at all.run.shchecks only its project argument, because everything after the project goes to Godot.
tests/test_cli.sh holds every one of them to this. It runs them from a scratch copy of this directory with stand-in engine, Docker, curl and claude commands, under a watchdog, so it needs neither Godot nor Docker, takes a few seconds, and passes under macOS's bash 3.2. tools/verify.sh runs it in its pins stage. shellcheck -x tools/*.sh is clean; the root .shellcheckrc points it at lib.sh.