Pass --yes flag from dev command to generate command#4069
Merged
Conversation
When --yes is passed to `spacetime dev`, now also pass it through to the internal `spacetime generate` call so that generate skips its interactive prompts as well.
4de3ef7 to
ab913fd
Compare
jdetter
requested changes
Jan 20, 2026
Collaborator
jdetter
left a comment
There was a problem hiding this comment.
I think this doesn't work:
boppy@geralt:~/clockwork/quickstart-chat-rust$ spacetime dev --yes
thread 'main' panicked at /home/boppy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.50/src/parser/matches/arg_matches.rs:185:17:
arg `yes`'s `ArgAction` should be one of `SetTrue`, `SetFalse` which should provide a default
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
boppy@geralt:~/clockwork/quickstart-chat-rust$ spacetime dev
thread 'main' panicked at /home/boppy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clap_builder-4.5.50/src/parser/matches/arg_matches.rs:185:17:
arg `yes`'s `ArgAction` should be one of `SetTrue`, `SetFalse` which should provide a default
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
boppy@geralt:~/clockwork/quickstart-chat-rust$ which spacetime
/home/boppy/.local/bin/spacetime
boppy@geralt:~/clockwork/quickstart-chat-rust$ spacetime --version
spacetime Path: /home/boppy/.local/share/spacetime/bin/1.11.3-source/spacetimedb-cli
Commit: ab913fd8921ba8bda3a59ebb464f630729b8df1d
spacetimedb tool version 1.11.3; spacetimedb-lib version 1.11.3;
jdetter
approved these changes
Jan 20, 2026
Collaborator
jdetter
left a comment
There was a problem hiding this comment.
I'd like someone to double check my work but I do believe I've fixed the issue. Tested by me in WSL.
Contributor
Author
|
Yes, force is the correct variable here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
When
--yesis passed tospacetime dev, the flag is now also passed through to the internalspacetime generatecall. This ensures that generate skips its interactive prompts when running in non-interactive mode.API and ABI breaking changes
None.
Expected complexity level and risk
1 - Trivial change. Adds a conditional argument to an internal command invocation.
Testing
spacetime dev --yesand verify generate does not prompt for confirmationspacetime dev(without --yes) and verify generate still prompts as expected