mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 23:37:48 +02:00
add nu-ansi-term (#3089)
This commit is contained in:
@ -10,7 +10,6 @@ version = "0.27.1"
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
ansi_term = "0.12.1"
|
||||
bigdecimal = "0.2.0"
|
||||
byte-unit = "4.0.9"
|
||||
|
||||
@ -35,6 +34,7 @@ nu-source = { version = "0.27.1", path = "../nu-source" }
|
||||
nu-table = { version = "0.27.1", path = "../nu-table" }
|
||||
nu-test-support = { version = "0.27.1", path = "../nu-test-support" }
|
||||
nu-value-ext = { version = "0.27.1", path = "../nu-value-ext" }
|
||||
nu-ansi-term = { version = "0.27.1", path = "../nu-ansi-term" }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
users = "0.11.0"
|
||||
|
@ -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