mirror of
https://github.com/nushell/nushell
synced 2025-01-13 21:55:07 +00:00
parent
f0a073b397
commit
e810995cf8
7 changed files with 11 additions and 9 deletions
2
.github/workflows/typos.yml
vendored
2
.github/workflows/typos.yml
vendored
|
@ -10,4 +10,4 @@ jobs:
|
||||||
uses: actions/checkout@v4.1.2
|
uses: actions/checkout@v4.1.2
|
||||||
|
|
||||||
- name: Check spelling
|
- name: Check spelling
|
||||||
uses: crate-ci/typos@v1.19.0
|
uses: crate-ci/typos@v1.20.3
|
||||||
|
|
|
@ -22,7 +22,7 @@ impl Command for LazyJoin {
|
||||||
.required("right_on", SyntaxShape::Any, "Right column(s) to join on")
|
.required("right_on", SyntaxShape::Any, "Right column(s) to join on")
|
||||||
.switch(
|
.switch(
|
||||||
"inner",
|
"inner",
|
||||||
"inner joing between lazyframes (default)",
|
"inner join between lazyframes (default)",
|
||||||
Some('i'),
|
Some('i'),
|
||||||
)
|
)
|
||||||
.switch("left", "left join between lazyframes", Some('l'))
|
.switch("left", "left join between lazyframes", Some('l'))
|
||||||
|
|
|
@ -128,7 +128,7 @@ impl Command for InputList {
|
||||||
// ..Default::default()
|
// ..Default::default()
|
||||||
// };
|
// };
|
||||||
|
|
||||||
let ans: InteractMode = if multi {
|
let answer: InteractMode = if multi {
|
||||||
let multi_select = MultiSelect::new(); //::with_theme(&theme);
|
let multi_select = MultiSelect::new(); //::with_theme(&theme);
|
||||||
|
|
||||||
InteractMode::Multi(
|
InteractMode::Multi(
|
||||||
|
@ -179,7 +179,7 @@ impl Command for InputList {
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(match ans {
|
Ok(match answer {
|
||||||
InteractMode::Multi(res) => {
|
InteractMode::Multi(res) => {
|
||||||
if index {
|
if index {
|
||||||
match res {
|
match res {
|
||||||
|
|
|
@ -66,7 +66,7 @@ fn main() {
|
||||||
println!("first: {}", array.first().unwrap());
|
println!("first: {}", array.first().unwrap());
|
||||||
|
|
||||||
// Add a value
|
// Add a value
|
||||||
array.push(Value::String("tak".to_string()));
|
array.push(Value::String("baz".to_string()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Encode to Hjson
|
// Encode to Hjson
|
||||||
|
@ -76,4 +76,4 @@ fn main() {
|
||||||
```
|
```
|
||||||
# DOCS
|
# DOCS
|
||||||
|
|
||||||
At the moment, the documentation on [serde_hjson](https://docs.rs/serde-hjson/0.9.1/serde_hjson/) / [serde_json](https://docs.rs/serde_json/1.0.93/serde_json/) is also relevant for nu-json.
|
At the moment, the documentation on [serde_hjson](https://docs.rs/serde-hjson/0.9.1/serde_hjson/) / [serde_json](https://docs.rs/serde_json/1.0.93/serde_json/) is also relevant for nu-json.
|
||||||
|
|
|
@ -473,7 +473,7 @@ pub enum ShellError {
|
||||||
span: Span,
|
span: Span,
|
||||||
},
|
},
|
||||||
|
|
||||||
/// An error happened while tryin to create a range.
|
/// An error happened while trying to create a range.
|
||||||
///
|
///
|
||||||
/// This can happen in various unexpected situations, for example if the range would loop forever (as would be the case with a 0-increment).
|
/// This can happen in various unexpected situations, for example if the range would loop forever (as would be the case with a 0-increment).
|
||||||
///
|
///
|
||||||
|
|
|
@ -335,7 +335,7 @@ fn const_captures_in_closures_work() {
|
||||||
assert_eq!(actual.out, "hello world");
|
assert_eq!(actual.out, "hello world");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[ignore = "TODO: Need to fix `overlay hide` to hide the constants brough by `overlay use`"]
|
#[ignore = "TODO: Need to fix `overlay hide` to hide the constants brought by `overlay use`"]
|
||||||
#[test]
|
#[test]
|
||||||
fn complex_const_overlay_use_hide() {
|
fn complex_const_overlay_use_hide() {
|
||||||
let inp = &[MODULE_SETUP, "overlay use spam", "$X"];
|
let inp = &[MODULE_SETUP, "overlay use spam", "$X"];
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
[files]
|
[files]
|
||||||
extend-exclude = ["crates/nu-command/tests/commands/table.rs", "*.tsv", "*.json", "*.txt"]
|
extend-exclude = ["crates/nu-command/tests/commands/table.rs", "*.tsv", "*.json", "*.txt", "tests/fixtures/formats/*"]
|
||||||
|
|
||||||
[default.extend-words]
|
[default.extend-words]
|
||||||
# Ignore false-positives
|
# Ignore false-positives
|
||||||
nd = "nd"
|
nd = "nd"
|
||||||
|
pn = "pn"
|
||||||
fo = "fo"
|
fo = "fo"
|
||||||
|
ful = "ful"
|
||||||
ons = "ons"
|
ons = "ons"
|
||||||
ba = "ba"
|
ba = "ba"
|
||||||
Plasticos = "Plasticos"
|
Plasticos = "Plasticos"
|
||||||
|
|
Loading…
Reference in a new issue