feat(crunch): add script mode for custom pipeline jobs #22

Merged
m3tam3re merged 1 commits from feat/crunch-script-mode into master 2026-07-02 19:56:49 +02:00
Collaborator

Fügt crunch script hinzu — führt beliebige Shell-Scripts nach Zeitplan aus, stdout → talk.

crunch script daily '08:00' ~/scripts/basecamp-daily.sh

Pipeline-Beispiel Basecamp Daily:

#!/usr/bin/env bash
TODOS=$(basecamp todos --today)
echo "$TODOS" | pi -p "Fasse zusammen, speichere als ~/reports/daily.md, antworte mit Top 3"
  • Script stdout → talk (Voice)
  • Leere stdout = Stille (kein Error)
  • Optionale Args werden ans Script durchgereicht
  • stderr wird bei Fehler mitgesprochen
Fügt `crunch script` hinzu — führt beliebige Shell-Scripts nach Zeitplan aus, stdout → talk. ```bash crunch script daily '08:00' ~/scripts/basecamp-daily.sh ``` Pipeline-Beispiel Basecamp Daily: ```bash #!/usr/bin/env bash TODOS=$(basecamp todos --today) echo "$TODOS" | pi -p "Fasse zusammen, speichere als ~/reports/daily.md, antworte mit Top 3" ``` - Script stdout → talk (Voice) - Leere stdout = Stille (kein Error) - Optionale Args werden ans Script durchgereicht - stderr wird bei Fehler mitgesprochen
m3ta-chiron added 1 commit 2026-07-02 19:55:51 +02:00
crunch script <type> <time> <script.sh> [args...]

Runs any shell script on schedule. Script stdout is piped to talk
for voice output. Empty stdout = silence (no error thrown).

Enables complex multi-step pipelines:
  - Fetch data (basecamp, gh, curl)
  - Write reports to disk
  - Pipe through pi/opencode for AI summarization
  - Final stdout → talk voice notification

Example:
  crunch script daily '08:00' ~/scripts/basecamp-daily.sh
m3tam3re merged commit 0341a1348e into master 2026-07-02 19:56:49 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: m3tam3re/nixpkgs#22