Skip to Content

Level 1: verbs to commands

Level 1 keeps the same trace but lets the app drive the core, with a commands table that maps verbs to argv.

Level 1 keeps the same trace but lets the app drive the core: instead of one [run] command that does everything, a [commands] table maps verbs to argv. The verbs this build calls are detect, doctor, discover, capture, attribute, index, verify, prepareWorktree and open.

level = 1

[commands]
doctor  = ["bin/doctor.sh", "{scope}"]
capture = ["bin/capture.sh", "{journey}", "{outDir}"]
open    = ["bin/open.sh", "{file}", "{line}"]

[capabilities]
provides = ["doctor", "capture", "open"]
  • Placeholders fill whole arguments, with no shell in between, so a value can't turn into a second command: {core}, {root}, {outDir}, {journey}, {target}, {device}, {commit}, {scope}, {mode}, {file}, {line}, {path}.
  • The program is named literally and lives inside the core's folder — that is what the person's grant covers.
  • Each command runs in the project copy and writes its trace to the folder in PITAFIX_OUT_DIR (or one folder below it). Job commands also get PITAFIX_COMMIT, PITAFIX_JOURNEY, PITAFIX_TARGET, PITAFIX_DEVICE and PITAFIX_PARAMS; every command gets PITAFIX_CORE_ID, PITAFIX_CORE_DIR, PITAFIX_PROJECT_ROOT, PITAFIX_CORE_CACHE and PITAFIX_OPTIONS.
  • List in provides what you mapped: it is what the person is shown, and the checker complains when the two disagree.

On this page