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

Print uv flag in --version #699

Merged
merged 2 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ _Unreleased_

- Use default toolchain to install tools. #666

- `rye --version` now shows if `uv` is enabled. #699

<!-- released start -->

## 0.24.0
Expand Down
2 changes: 2 additions & 0 deletions rye/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ mod version;
use git_testament::git_testament;

use crate::bootstrap::SELF_PYTHON_TARGET_VERSION;
use crate::config::Config;
use crate::platform::symlinks_supported;

git_testament!(TESTAMENT);
Expand Down Expand Up @@ -152,5 +153,6 @@ fn print_version() -> Result<(), Error> {
);
echo!("self-python: {}", SELF_PYTHON_TARGET_VERSION);
echo!("symlink support: {}", symlinks_supported());
echo!("uv enabled: {}", Config::current().use_uv());
Ok(())
}