mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 07:46:01 +02:00
Merge branch 'main' into add_agg_by_command
This commit is contained in:
@ -5,7 +5,7 @@ edition = "2021"
|
||||
license = "MIT"
|
||||
name = "nu-command"
|
||||
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-command"
|
||||
version = "0.99.2"
|
||||
version = "0.100.1"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@ -16,21 +16,21 @@ bench = false
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
nu-cmd-base = { path = "../nu-cmd-base", version = "0.99.2" }
|
||||
nu-color-config = { path = "../nu-color-config", version = "0.99.2" }
|
||||
nu-engine = { path = "../nu-engine", version = "0.99.2" }
|
||||
nu-glob = { path = "../nu-glob", version = "0.99.2" }
|
||||
nu-json = { path = "../nu-json", version = "0.99.2" }
|
||||
nu-parser = { path = "../nu-parser", version = "0.99.2" }
|
||||
nu-path = { path = "../nu-path", version = "0.99.2" }
|
||||
nu-pretty-hex = { path = "../nu-pretty-hex", version = "0.99.2" }
|
||||
nu-protocol = { path = "../nu-protocol", version = "0.99.2" }
|
||||
nu-system = { path = "../nu-system", version = "0.99.2" }
|
||||
nu-table = { path = "../nu-table", version = "0.99.2" }
|
||||
nu-term-grid = { path = "../nu-term-grid", version = "0.99.2" }
|
||||
nu-utils = { path = "../nu-utils", version = "0.99.2" }
|
||||
nu-cmd-base = { path = "../nu-cmd-base", version = "0.100.1" }
|
||||
nu-color-config = { path = "../nu-color-config", version = "0.100.1" }
|
||||
nu-engine = { path = "../nu-engine", version = "0.100.1" }
|
||||
nu-glob = { path = "../nu-glob", version = "0.100.1" }
|
||||
nu-json = { path = "../nu-json", version = "0.100.1" }
|
||||
nu-parser = { path = "../nu-parser", version = "0.100.1" }
|
||||
nu-path = { path = "../nu-path", version = "0.100.1" }
|
||||
nu-pretty-hex = { path = "../nu-pretty-hex", version = "0.100.1" }
|
||||
nu-protocol = { path = "../nu-protocol", version = "0.100.1" }
|
||||
nu-system = { path = "../nu-system", version = "0.100.1" }
|
||||
nu-table = { path = "../nu-table", version = "0.100.1" }
|
||||
nu-term-grid = { path = "../nu-term-grid", version = "0.100.1" }
|
||||
nu-utils = { path = "../nu-utils", version = "0.100.1" }
|
||||
nu-ansi-term = { workspace = true }
|
||||
nuon = { path = "../nuon", version = "0.99.2" }
|
||||
nuon = { path = "../nuon", version = "0.100.1" }
|
||||
|
||||
alphanumeric-sort = { workspace = true }
|
||||
base64 = { workspace = true }
|
||||
@ -139,8 +139,8 @@ sqlite = ["rusqlite"]
|
||||
trash-support = ["trash"]
|
||||
|
||||
[dev-dependencies]
|
||||
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.99.2" }
|
||||
nu-test-support = { path = "../nu-test-support", version = "0.99.2" }
|
||||
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.100.1" }
|
||||
nu-test-support = { path = "../nu-test-support", version = "0.100.1" }
|
||||
|
||||
dirs = { workspace = true }
|
||||
mockito = { workspace = true, default-features = false }
|
||||
|
@ -128,8 +128,13 @@ impl Command for SubCommand {
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Upload a file to example.com",
|
||||
example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.mp3 | into binary) }",
|
||||
description: "Upload a binary file to example.com",
|
||||
example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.mp3) }",
|
||||
result: None,
|
||||
},
|
||||
Example {
|
||||
description: "Convert a text file into binary and upload it to example.com",
|
||||
example: "http post --content-type multipart/form-data https://www.example.com { file: (open -r file.txt | into binary) }",
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
|
@ -141,3 +141,10 @@ fn mut_raw_string() {
|
||||
let actual = nu!(r#"mut x = r#'abc'#; $x"#);
|
||||
assert_eq!(actual.out, "abc");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn def_should_not_mutate_mut() {
|
||||
let actual = nu!("mut a = 3; def foo [] { $a = 4}");
|
||||
assert!(actual.err.contains("capture of mutable variable"));
|
||||
assert!(!actual.status.success())
|
||||
}
|
||||
|
Reference in New Issue
Block a user