EDGE0 / YOUR FIRST LOCAL BUILD
See the changed
workflow in action.
By Alvin
Read prompt-publication.txt, generate a second build and inspect its saved Python source before running it:
python3 edge_workshop.py ask publication --out my-publication python3 my-publication/publication.py sample-notes.json echo $?
Our actual output from the same notes
READY S1 The workshop starts Saturday at 10. S3 Bring a café mug. NEEDS REVIEW S2 Ramp access awaits confirmation.
The next number printed by echo $? is 1: the program produced useful output and found follow-up work. An exit code is a small status number a program returns to Terminal. Here 0 means all notes are confirmed, 1 means some need review, and 2 means invalid input.
python3 my-publication/publication.py sample-notes.json --ready-only > ready-draft.txt
Open ready-draft.txt in a text editor. Only S1 and S3 belong in the draft. The > character asks Terminal to save the output; it replaces that named file if it exists. Choose another filename to keep an earlier draft.