uv 0.11.12

A Python package and project manager
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use owo_colors::OwoColorize;
use std::fmt::Write;

use uv_cache::Cache;
use uv_fs::Simplified;

use crate::commands::ExitStatus;
use crate::printer::Printer;

/// Show the cache directory.
pub(crate) fn cache_dir(cache: &Cache, printer: Printer) -> anyhow::Result<ExitStatus> {
    writeln!(
        printer.stdout(),
        "{}",
        cache.root().simplified_display().cyan()
    )?;
    Ok(ExitStatus::Success)
}