Allow skipping DB if the config file is available#4358
Merged
cloutiertyler merged 6 commits intomasterfrom Feb 20, 2026
Merged
Conversation
…into drogus/skip-db-in-CLI-commands
…or messages - Commands with unambiguous <database> args (logs, delete) now fall through to treat unknown database names as ad-hoc databases instead of erroring, removing the need for --no-config in those cases. - `spacetime sql` falls through similarly when 2+ args are provided (first must be a database since sql expects exactly 1 query). - Multi-target config errors now list the configured databases instead of the generic "not in the config file" message. - `spacetime sql "SELECT ..."` with multi-target config gives a helpful error suggesting the correct syntax instead of the misleading "missing <query>" error.
54ea59e to
01a5bff
Compare
The clap-standard SCREAMING_CASE placeholders like <FUNCTION_NAME> in help strings end up as bare HTML/JSX tags in the generated CLI reference markdown, causing the Docusaurus MDX build to fail. Rather than changing the help text conventions, add a post-processing step to the doc generation script that escapes <PLACEHOLDER> patterns outside backtick code spans. Regenerate CLI docs.
01a5bff to
f8e0eb8
Compare
cloutiertyler
approved these changes
Feb 20, 2026
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
This PR introduces a possibility to skip passing a DB name to various commands if there is a config file with one database defined
API and ABI breaking changes
This changes the behaviour of several CLI commands:
Expected complexity level and risk
4 - it's tricky to get all of the combinations of CLI arguments right
Testing
I've tested the simplest cases manually.