uv_python_commands/lib.rs
1//! Commands for discovering and managing Python installations.
2
3pub mod dir;
4pub mod find;
5pub mod install;
6pub mod list;
7pub mod pin;
8pub mod uninstall;
9pub mod update_shell;
10
11#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
12pub(crate) enum ChangeEventKind {
13 /// The Python version was uninstalled.
14 Removed,
15 /// The Python version was installed.
16 Added,
17 /// The Python version was reinstalled.
18 Reinstalled,
19}
20
21#[derive(Debug)]
22pub(crate) struct ChangeEvent {
23 key: uv_python_types::PythonInstallationKey,
24 kind: ChangeEventKind,
25}