mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 09:19:53 +02:00
Move nu-data out of nu-cli (#2369)
* WIP for moving nu-data out * Refactor nu-data out of nu-cli * Remove unwraps * Remove unwraps
This commit is contained in:
@@ -10,7 +10,7 @@ version = "0.18.2"
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
nu-cli = {path = "../nu-cli", version = "0.18.2"}
|
||||
nu-data = {path = "../nu-data", version = "0.18.2"}
|
||||
nu-errors = {path = "../nu-errors", version = "0.18.2"}
|
||||
nu-plugin = {path = "../nu-plugin", version = "0.18.2"}
|
||||
nu-protocol = {path = "../nu-protocol", version = "0.18.2"}
|
||||
|
@@ -32,7 +32,7 @@ pub fn view_text_value(value: &Value) {
|
||||
let highlight_range_to: u64 = 0;
|
||||
let mut theme = "OneHalfDark".to_string();
|
||||
|
||||
if let Ok(config) = nu_cli::data::config::config(Tag::unknown()) {
|
||||
if let Ok(config) = nu_data::config::config(Tag::unknown()) {
|
||||
if let Some(batvars) = config.get("textview") {
|
||||
for (idx, value) in batvars.row_entries() {
|
||||
match idx.as_ref() {
|
||||
|
Reference in New Issue
Block a user