feat(run): add --command override to run arbitrary commands in a venv - #270
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
Add a --command option to `riot run` that overrides the venv's baked
command. When set, riot runs the override command in the venv (with the
same prepare/env/pass-env semantics) instead of inst.command. {cmdargs}
is substituted within the override if present.
This lets external runners (e.g. ddtest) run inside a riot venv
and inherit riot's full env natively, without the caller reconstructing
the activation env.
gnufede
force-pushed
the
gnufede/command-arg
branch
from
August 26, 2026 12:09
cb5c67d to
fab9b69
Compare
Round out the --command override feature: document usage in the quickstart guide, add a release note, and cover the no-baked-command run/skip paths with tests. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
mabdinur
approved these changes
Aug 27, 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.
Add a --command option to
riot runthat overrides the venv's baked command. When set, riot runs the override command in the venv (with the same prepare/env/pass-env semantics) instead of inst.command. {cmdargs} is substituted within the override if present.This lets external runners (e.g. ddtest) run inside a riot venv and inherit riot's full env natively, without the caller reconstructing the activation env.