ByteSync icon indicating copy to clipboard operation
ByteSync copied to clipboard

1.5 Define CLI exit codes for trusted-session start

Open marwannettour opened this issue 6 months ago • 0 comments

Parent epic: #307

Summary

Define stable exit codes for the trusted-session CLI flow.

Requirements

  • Return 0 when the session is created and all invitations are sent.
  • Return 1 when the session is created but some clients cannot be invited.
  • Return 2 when one or more clients are not trusted.
  • Return 3 on session creation failure.
  • Return 4 on timeout when --wait is used.
  • Return 5 for invalid requests.
  • Return -1 for unexpected errors.

Acceptance criteria

  • CLI results are predictable for scripts.
  • Exit codes are documented in code or CLI help where appropriate.
  • Unit tests cover the main result-to-exit-code mappings.

marwannettour avatar May 19 '26 12:05 marwannettour