clockworklabs / clockworklabs/SpacetimeDB
Support multiple identities in the CLI
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 25.2k
- Forks
- 1.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 46
Description
I've searched old issues and PRs and found https://github.com/clockworklabs/SpacetimeDB/pull/1878. spacetime login works great for normal operations, but the old --identity arguments were more flexible and supported doing tests with multiple identities through the CLI.
I'm implementing a turn-based game and being able to run reducers impersonating several different players from the CLI would be very useful. Something like:
spacetime call join_game foo --identity <IDENTITY_A>
spacetime call join_game foo --identity <IDENTITY_B>
This would require another command for getting new identities, similar to client SDKs when they don't provide a token on connection.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reviewing PR 1878 and the existing spacetime login and spacetime call entry points. Clarify how new identities should be obtained and how calls select among them. Done means the CLI can create or obtain multiple identities and run calls as each identity, including the example game workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- authentication, cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100