Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow shell expansion/interpolation in rye run command #695

Open
dvonessen opened this issue Feb 19, 2024 · 1 comment
Open

Allow shell expansion/interpolation in rye run command #695

dvonessen opened this issue Feb 19, 2024 · 1 comment

Comments

@dvonessen
Copy link

Hi,

I asked this question in the discord, but thought about it.
At the moment it is not possible to use shell interpolation with rye run command.
See: https://rye-up.com/guide/pyproject/#cmd

It would be awesome if that would be made possible.
pdm does seem to have this ability.
See: https://pdm-project.org/latest/usage/scripts/#shell

Example:

...
[tool.rye.scripts]
test_script = {shell="echo $TEST_ENV"}
> export TEST_ENV="FooBar"
> rye run test_script
$TEST_ENV
@dvonessen dvonessen changed the title Allow shell expantion/interpolation in rye run command Allow shell expansion/interpolation in rye run command Feb 19, 2024
@aspizu
Copy link

aspizu commented Jun 8, 2024

How would this work? Should rye make its own shell language, or use Bash?

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

No branches or pull requests

2 participants