Skip to content

spacetime publish --yes now takes optional arguments#4885

Open
jdetter wants to merge 2 commits intomasterfrom
jdetter/accept-remote-publish
Open

spacetime publish --yes now takes optional arguments#4885
jdetter wants to merge 2 commits intomasterfrom
jdetter/accept-remote-publish

Conversation

@jdetter
Copy link
Copy Markdown
Collaborator

@jdetter jdetter commented Apr 23, 2026

Description of Changes

This was prompted from another request from the discord. Conversation context: https://discord.com/channels/1037340874172014652/1138987509834059867/1496964407278698656

We've had the ticket to make --yes take an enum value: #3784 . Since we can do this in a non-API/ABI breaking way we're just implementing this ticket.

Disclaimer: I used claude to write ~90% of this PR.

API and ABI breaking changes

None. --yes now just takes an optional argument string that we parse, existing CLI commands that use --yes will be unaffected.

Expected complexity level and risk

1 - This is just modifying the --yes argument and I've included tests in the PR.

Testing

  • spacetime publish --yes still works as expected
  • spacetime publish --yes=all does the same thing as spacetime publish --yes
  • spacetime publish --yes=remote only skips asking if publishing to a remote server is ok.
  • spacetime publish --yes=remote only skips asking if publishing to a remote server is ok.
  • spacetime publish --yes=migrate|remote skips both the migrate prompt and the remote server prompt.
  • new tests are passing

@jdetter jdetter changed the title spacetime publish --accept-remote spacetime publish --yes now takes optional arguments Apr 27, 2026
Implements #3784. `--yes` is now an enum-valued
flag accepting all|remote|migrate|break-clients|skip-login, combinable
with '|' (e.g. --yes='migrate|skip-login'). With no value it defaults
to all, matching the previous behavior. Each prompt site reads from
the corresponding YesFlags field. The legacy --break-clients flag is
preserved as an alias for --yes=break-clients.

Uses require_equals so `spacetime publish --yes my-db` parses my-db as
the database name rather than as a value to --yes.
@jdetter jdetter force-pushed the jdetter/accept-remote-publish branch from 7e6c142 to 1d455ec Compare April 27, 2026 12:54
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