forked from extern/nushell
add nu-ansi-term (#3089)
This commit is contained in:
@ -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};
|
||||
|
@ -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) => {
|
||||
|
Reference in New Issue
Block a user