Skip to content

Commit

Permalink
bump to 0.92.0 (#40)
Browse files Browse the repository at this point in the history
the tests all pass but the plugin somehow does not work anymore.

EDIT: this will be taken care of in
nushell/nushell#12448
  • Loading branch information
amtoine authored Apr 12, 2024
1 parent bda263e commit 7f74017
Show file tree
Hide file tree
Showing 11 changed files with 278 additions and 222 deletions.
154 changes: 86 additions & 68 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ name = "nu_plugin_explore"
anyhow = "1.0.73"
console = "0.15.7"
crossterm = "0.27.0"
nu-plugin = "0.91.0"
nu-protocol = { version = "0.91.0", features = ["plugin"] }
nu-plugin = "0.92.0"
nu-protocol = { version = "0.92.0", features = ["plugin"] }
ratatui = "0.26.1"
url = "2.4.0"

Expand All @@ -17,4 +17,4 @@ bench = false
[package]
edition = "2021"
name = "nu_plugin_explore"
version = "0.2.0"
version = "0.92.0"
14 changes: 9 additions & 5 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,15 @@ impl App {
span: Span::unknown(),
optional: vals.is_empty(),
}),
Value::Record { val: rec, .. } => app.position.members.push(PathMember::String {
val: rec.cols.first().unwrap_or(&"".to_string()).into(),
span: Span::unknown(),
optional: rec.cols.is_empty(),
}),
Value::Record { val: rec, .. } => {
let cols = rec.columns().cloned().collect::<Vec<_>>();

app.position.members.push(PathMember::String {
val: cols.first().unwrap_or(&"".to_string()).into(),
span: Span::unknown(),
optional: cols.is_empty(),
})
}
_ => {}
}

Expand Down
Loading

0 comments on commit 7f74017

Please sign in to comment.