add nu-ansi-term (#3089)

This commit is contained in:
Darren Schroeder
2021-02-22 12:33:34 -06:00
committed by GitHub
parent 803826cdcd
commit 2c89a228d5
40 changed files with 2510 additions and 46 deletions

View File

@ -1,4 +1,4 @@
use ansi_term::{Color, Style};
use nu_ansi_term::{Color, Style};
use nu_protocol::{hir::Number, Primitive, Value};
use nu_source::Tag;
use nu_table::{Alignment, TextStyle};

View File

@ -336,7 +336,7 @@ pub fn format_leaf<'a>(value: impl Into<&'a UntaggedValue>) -> DebugDocBuilder {
pub fn style_leaf<'a>(
value: impl Into<&'a UntaggedValue>,
color_hash_map: &HashMap<String, ansi_term::Style>,
color_hash_map: &HashMap<String, nu_ansi_term::Style>,
) -> TextStyle {
match value.into() {
UntaggedValue::Primitive(p) => {