-
Notifications
You must be signed in to change notification settings - Fork 802
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
Add a --output
and -o
flag to uv export
#7058
Comments
We can also do an atomic write with this. |
Also needed for astral-sh/uv-pre-commit#16 |
Why is it needed there vs. piping the output? Just curious. |
I think so users can customize the file name via |
It is definitely not needed. But I think it is a nice to have:
|
I will do this quickly. |
Awesome thank you Charlie! |
I think this feature is necessary, mainly due to text encoding issues. UV writes files would allow us to unify text encoding. If we use piped output, the encoding would depend on the settings or defaults, just like how PowerShell has different encoding behaviors. |
Background
Thank you for adding the
uv export
command. It is a great feature. One improvement that would be helpful is to include an option to export the data to a file. For example, currently you can do this:However, it would be a nice feature to have an output flag. For example:
This is the same approach that poetry uses: https://python-poetry.org/docs/cli/#export
Why
Using
>
or>>
requires the user to have more advanced shell knowledge. Having an output flag could be easier for users.System
The text was updated successfully, but these errors were encountered: