Skip to content

✨ feat: add basic-cli exit effect#8

Merged
zrr1999 merged 1 commit into
mainfrom
feat/basic-cli-exit-effect
Apr 17, 2026
Merged

✨ feat: add basic-cli exit effect#8
zrr1999 merged 1 commit into
mainfrom
feat/basic-cli-exit-effect

Conversation

@zrr1999

@zrr1999 zrr1999 commented Apr 14, 2026

Copy link
Copy Markdown
Member

Summary

  • add Exit to the basic-cli platform handles and expose basic_cli.cmd.exit(code: Int) -> Never uses [Exit]
  • extend the host crate dispatch surface with host_exit coverage and tests while keeping it explicit that the live runtime still lives in spore
  • document the new basic_cli.cmd capability surface in the README and reject unsupported exit codes instead of truncating them silently

Validation

  • cargo test --manifest-path host/Cargo.toml
  • ../spore/target/debug/spore check src/basic_cli/cmd.sp
  • ../spore/target/debug/spore build src/basic_cli/cmd.sp

Notes

  • this PR only adds the package surface and host-side mirror; the live project-mode runtime plumbing lands separately in spore
  • the current exit-code boundary is 0..=255, matching the CLI-side process boundary used by the paired spore runtime slice

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@zrr1999
zrr1999 merged commit 91e188c into main Apr 17, 2026
5 checks passed
@zrr1999
zrr1999 deleted the feat/basic-cli-exit-effect branch April 17, 2026 15:23
zrr1999 added a commit that referenced this pull request Apr 24, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant