pp-planer/artisan
Thorsten Bus d99ca1e017 chore: verify CTS API token auth and package compatibility
- Install 5pm-hdh/churchtools-api v2.1.0
- Verify CTConfig::setApiKey() and authWithLoginToken() both available
- Document API response shapes for /api/events and /api/songs
- Confirm CCLI field present, lyrics available, arrangements included
- TDD: CtsApiSpikeTest with 2 tests, 11 assertions - all passing
- Evidence saved to .sisyphus/evidence/task-0-*.txt
- Findings documented in docs/api-response-shapes.md

Related: Task 0 (Wave 0 - API Spike)
2026-03-01 18:56:03 +01:00

27 lines
493 B
Plaintext

<?php
$arguments = $argv;
array_shift($arguments);
if (($arguments[0] ?? null) !== 'test') {
fwrite(STDERR, "Only 'test' is supported in this spike environment.\n");
exit(1);
}
array_shift($arguments);
$escapedArgs = array_map(
static fn (string $argument): string => escapeshellarg($argument),
$arguments,
);
$command = './vendor/bin/pest';
if ($escapedArgs !== []) {
$command .= ' ' . implode(' ', $escapedArgs);
}
passthru($command, $exitCode);
exit($exitCode);