Skip to content

Commit

Permalink
chore:mirror使用灰色
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnotech committed May 2, 2024
1 parent 61dcda9 commit 02dd9ea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ mod utils;

use anyhow::{anyhow, Result};

use colored::Colorize;
use entrances::meta;
use std::fs::write;
use std::process::exit;
Expand Down Expand Up @@ -51,11 +52,15 @@ fn router(action: Action) -> Result<String> {
.fold(format!("\nFound {len} results:\n"), |acc, node| {
return acc
+ &format!(
" {scope}/{name} ({version}) mirror:{mirror}\n",
" {scope}/{name} ({version}) {mirror}\n",
name = node.name,
version = node.version,
scope = node.scope,
mirror = node.from_mirror.unwrap_or("".to_string())
mirror = node
.from_mirror
.unwrap_or("".to_string())
.as_str()
.truecolor(100, 100, 100)
);
});
res
Expand Down

0 comments on commit 02dd9ea

Please sign in to comment.