diff --git a/Cargo.lock b/Cargo.lock index 45ab8ebe26..7cff7b22bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1504,7 +1504,7 @@ dependencies = [ [[package]] name = "nu" -version = "0.2.0" +version = "0.3.0" dependencies = [ "ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", "app_dirs 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index e81bc0ee69..c59154eea5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nu" -version = "0.2.0" +version = "0.3.0" authors = ["Yehuda Katz ", "Jonathan Turner ", "Andrés N. Robalino "] description = "A shell for the GitHub era" license = "MIT" diff --git a/README.md b/README.md index 202c88f362..85b4dc30bf 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ We can pipeline this into a command that gets the contents of one of the columns ━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━┯━━━━━━━━━┯━━━━━━┯━━━━━━━━━ authors │ description │ edition │ license │ name │ version ─────────────────┼────────────────────────────┼─────────┼─────────┼──────┼───────── - [table: 3 rows] │ A shell for the GitHub era │ 2018 │ ISC │ nu │ 0.2.0 + [table: 3 rows] │ A shell for the GitHub era │ 2018 │ ISC │ nu │ 0.3.0 ━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━┷━━━━━━━━━┷━━━━━━┷━━━━━━━━━ ``` @@ -174,7 +174,7 @@ Finally, we can use commands outside of Nu once we have the data we want: ``` /home/jonathan/Source/nushell(master)> open Cargo.toml | get package.version | echo $it -0.2.0 +0.3.0 ``` Here we use the variable `$it` to refer to the value being piped to the external command. diff --git a/src/commands/help.rs b/src/commands/help.rs index 4ddd147b42..e8c458caad 100644 --- a/src/commands/help.rs +++ b/src/commands/help.rs @@ -28,18 +28,11 @@ impl PerItemCommand for Help { ) -> Result { let tag = call_info.name_tag; - if call_info.args.len() == 0 { - return Ok(vec![Ok(ReturnSuccess::Action(CommandAction::EnterHelpShell( - Value::nothing().tagged(tag), - )))] - .into()); - } - - match call_info.args.expect_nth(0)? { - Tagged { + match call_info.args.nth(0) { + Some(Tagged { item: Value::Primitive(Primitive::String(document)), tag, - } => { + }) => { let mut help = VecDeque::new(); if document == "commands" { let mut sorted_names = registry.names(); diff --git a/src/commands/nth.rs b/src/commands/nth.rs index bf397e1bcf..18bb6f23af 100644 --- a/src/commands/nth.rs +++ b/src/commands/nth.rs @@ -16,7 +16,7 @@ impl WholeStreamCommand for Nth { } fn signature(&self) -> Signature { - Signature::build("nth").required("amount", SyntaxShape::Any) + Signature::build("nth").required("row number", SyntaxShape::Any) } fn usage(&self) -> &str {