Use owo_colors instead of colored (#121)
This is what `miette` uses so seems better to avoid two coloring crates.
This commit is contained in:
@@ -4,7 +4,7 @@ use std::io::{stdout, BufWriter};
|
||||
use std::path::Path;
|
||||
|
||||
use anyhow::Result;
|
||||
use colored::Colorize;
|
||||
use owo_colors::OwoColorize;
|
||||
use pubgrub::report::Reporter;
|
||||
use tracing::debug;
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ use std::path::Path;
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use bitflags::bitflags;
|
||||
use colored::Colorize;
|
||||
use itertools::{Either, Itertools};
|
||||
use owo_colors::OwoColorize;
|
||||
use tracing::debug;
|
||||
|
||||
use platform_host::Platform;
|
||||
|
||||
@@ -2,8 +2,8 @@ use std::fmt::Write;
|
||||
use std::path::Path;
|
||||
|
||||
use anyhow::Result;
|
||||
use colored::Colorize;
|
||||
use fs_err::tokio as fs;
|
||||
use owo_colors::OwoColorize;
|
||||
|
||||
use crate::commands::ExitStatus;
|
||||
use crate::printer::Printer;
|
||||
@@ -25,7 +25,7 @@ pub(crate) async fn venv(
|
||||
writeln!(
|
||||
printer,
|
||||
"Using Python interpreter: {}",
|
||||
format!("{}", base_python.display()).cyan()
|
||||
base_python.display().cyan()
|
||||
)?;
|
||||
|
||||
// If the path already exists, remove it.
|
||||
@@ -35,7 +35,7 @@ pub(crate) async fn venv(
|
||||
writeln!(
|
||||
printer,
|
||||
"Creating virtual environment at: {}",
|
||||
format!("{}", path.display()).cyan()
|
||||
path.display().cyan()
|
||||
)?;
|
||||
|
||||
// Create the virtual environment.
|
||||
|
||||
@@ -2,8 +2,8 @@ use std::path::PathBuf;
|
||||
use std::process::ExitCode;
|
||||
|
||||
use clap::{Args, Parser, Subcommand};
|
||||
use colored::Colorize;
|
||||
use directories::ProjectDirs;
|
||||
use owo_colors::OwoColorize;
|
||||
|
||||
use crate::commands::ExitStatus;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user