Add --output-file to uv export (#7109)

## Summary

Closes https://github.com/astral-sh/uv/issues/7058.
This commit is contained in:
Charlie Marsh 2024-09-05 20:53:53 -04:00 committed by GitHub
parent 3d57b6e795
commit d0f9016eda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 142 additions and 62 deletions

View file

@ -2966,6 +2966,10 @@ pub struct ExportArgs {
#[arg(long, overrides_with("hashes"))]
pub no_hashes: bool,
/// Write the compiled requirements to the given `requirements.txt` file.
#[arg(long, short)]
pub output_file: Option<PathBuf>,
/// Assert that the `uv.lock` will remain unchanged.
///
/// Requires that the lockfile is up-to-date. If the lockfile is missing or