Exit hook: run something when spyc quits
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
The issue names no implementation files or tests. First read the related issues #89, #63, and #73 to understand the existing startup command, cwd-on-quit behavior, and autocommand plans. The issue does not define what an exit hook must do; a concrete use case and agreed design are needed before implementation or a test for completion can be identified.
Written by the indexing model from the issue text.
Description
Split from #89, which shipped spyc -c <cmd> startup commands. The exit-hook half ("-F exit hooks") has no concrete use case yet, so its shape is still open.
Shapes considered
- A Lua
spyc.on("exit", fn)event, besidestartup,dir_changed,project_changedandagent_status. Its handlers' requests have to apply before teardown, and the run needs a short budget so a slow handler can't hang quit; the worker's 30s ceiling is far too long there. - A
-F <cmd>CLI flag, the mirror of-c: a:command run on quit. At that point a:command can do little beyond:!.
Related
- #63, cwd export on quit (
--cwd-file/$SPYC_CWD_FILE), is the concrete shell-integration need on quit, and doesn't need a general hook. - #73, autocommands (needs grooming), may be where a general event hook belongs.
Worth building once a use case names what an exit hook must do.
- Dominant language
- Rust
- Stars
- 17
- Forks
- 2
- Avg merge
- 39m
- Merged PRs (30d)
- 413
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Tripstack-Corp/spyc
-
area:agent type:fix
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Tripstack-Corp/spyc#1000 ·
Maintainers usually reply within 1 day
-
area:fs area:ui type:feat
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Tripstack-Corp/spyc#970 ·
Maintainers usually reply within 1 day
-
area:build-ci type:chore
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Tripstack-Corp/spyc#933 ·
Maintainers usually reply within 1 day
-
area:ui type:feat
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Tripstack-Corp/spyc#932 ·
Maintainers usually reply within 1 day
-
area:build-ci type:chore
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Tripstack-Corp/spyc#930 ·
Maintainers usually reply within 1 day
All issues in Tripstack-Corp/spyc
Similar issues
-
🐞 bug 🧩 bevy_gantz_egui
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nannou-org/gantz#500 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
metasequoiaime/msime#10989 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fritzprix/libr-agent#2612 ·
Maintainers usually reply within 1 day
-
crate: spate-core priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NSPG13/agent-bounties#1749 ·
Maintainers usually reply within 1 day