Commit Graph

286 Commits

Author SHA1 Message Date
JT
8581bec891
bump 0.37.1 () 2021-09-16 13:32:22 +12:00
JT
1d80a68f4c
bump to 0.37 () 2021-09-15 06:44:24 +12:00
JT
7fe05b8296
bump to 0.36.1 () 2021-08-27 20:48:58 +12:00
JT
991a4801b1
Bump to 0.36 () 2021-08-25 06:01:17 +12:00
JT
bc682066d8
Bump to 0.35 () 2021-08-03 20:01:09 +12:00
JT
226739d13f
Bump to 0.34.1 () 2021-07-25 22:58:33 +12:00
Kat Marchán
fcd624a722
add date humanize command ()
* add `date humanize` command

* add docs
2021-07-25 17:33:31 +12:00
Sertac Olgunsoylu
7401fa2fa5
Fix docs for the config variable completion_type () 2021-07-19 07:20:56 -05:00
JT
71f4ea9d76
Bump to 0.34.0 () 2021-07-14 05:57:41 +12:00
Eli Flanagan
4ed615cfcc
documentation: consistent abbreviation for URL ()
I noticed `fetch`'s documentation used "URL" so wanted to do so here as
well.
2021-06-25 09:14:20 -05:00
JT
edbc828fc3
Bump to 0.33.1 () 2021-06-23 19:57:41 +12:00
JT
55cab9eb4f
Bump to 0.33 () 2021-06-22 17:22:33 +12:00
Andrés N. Robalino
2a946af81e
Support version option in Nu bin. ()
Additionally we remove the little pieces that we relied on `clap` (for version number in this case).
2021-06-16 14:53:28 -05:00
Christian Menges
500683831c
from xlsx/ods: Add parameter --sheets ()
* from xlsx: Add parameter --sheets

* from ods: Add parameter --sheets
2021-06-10 07:44:24 -05:00
Stefan Holderbach
31a5de973d
Fix duration literals in where docs ()
Addresses 
2021-06-07 15:21:31 -05:00
JT
7d78f40bf6
Bump to 0.32.1 () 2021-06-04 19:07:50 +12:00
Christian Menges
2486492c4d
from sqlite: Add parameter --tables ()
* from sqlite: Add parameter '--tables'

* from sqlite: Enhance documentation
2021-06-01 17:06:32 -05:00
JT
df526f73be
Bump to 0.32 ()
* Bump to 0.32

* Bump to 0.32
2021-06-01 08:14:50 +12:00
Christian Menges
01f1208ad1
to sqlite: Fix panic caused by empty tables () 2021-05-31 21:46:07 +12:00
JT
bff81f24aa
Autogenerate missing docs ()
* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
2021-05-30 12:57:04 +12:00
JT
2bb23c57df
Bump to 0.31.1 () 2021-05-12 15:06:50 +12:00
JT
25a8caa9b0
Simplify expressions ()
* WIP: experiment with simpler expressions

* fix simple invoke

* update tests

* fix a few tests

* Make paren parsing more robust

* fix external args

* Remove old invocation

* Update tests

* Update tests
2021-05-12 13:01:48 +12:00
JT
48128c9db6
Bump to 0.31.0 () 2021-05-11 16:44:52 +12:00
JT
599c43ce04
bump to 0.30.1 () 2021-04-22 21:07:54 +12:00
JT
0fc9b6cfa2
Bump to 0.30 ()
* Bump to 0.30

* fix test
2021-04-20 18:34:10 +12:00
Jonathan Turner
42fac722bb
Bump to 0.29.2 ()
* Bump to 0.29.2

* Fix test
2021-04-07 08:14:06 +12:00
Waldir Pimenta
4bc9d9fd3b
Fix typos and capitalization of "Unicode" ()
* Capitalize "Unicode"

* Fix several typos

* Fix mixed whitespace in nu-parser's tests
2021-04-04 07:14:07 +12:00
Luccas Mateus
0fe6c7c558
Mathsqrt ()
* Output error when ls into a file without permission

* math sqrt

* added test to check fails when ls into prohibited dir

* fix lint

* math sqrt with tests and doc

* trigger wasm build

* Update filesystem_shell.rs

* always forgetting the linting

* fix clippy complaining

Co-authored-by: Jonathan Turner <jonathandturner@users.noreply.github.com>
2021-04-01 16:26:05 -05:00
Jonathan Turner
06b154f4b2
Bump to 0.29.1 ()
* Bump to 0.29.1

* fix test
2021-03-31 20:13:40 +13:00
Jonathan Turner
4faaa5310e
Bump to 0.29 ()
* Bump to 0.29

* fix test
2021-03-30 22:35:21 +13:00
John-Goff
c13fe83784
Rename count to length ()
* update docs to refer to length instead of count

* rename count to length

* change all occurrences of 'count' to 'length' in tests

* format length command
2021-03-14 10:46:40 +13:00
Jonathan Turner
22ae962b57
Bump to 0.28 () 2021-03-09 23:40:17 +13:00
Jonathan Turner
aa6c6120f6
Bump to 0.27.2 ()
* Bump to 0.27.2

* Fix clippy and test
2021-02-26 17:55:25 +13:00
Jonathan Turner
deff1aa63b
Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
Jonathan Turner
039f223b53
Bump to 0.27 () 2021-02-16 19:20:05 +13:00
ammkrn
aa564f5072
display boolean config options as true/false instead of Yes/No () 2021-02-11 21:50:33 +13:00
Jonathan Turner
c83aea3c89
Bump to 0.26.1 () 2021-02-05 19:38:04 +13:00
Leonhard Kipp
d0a2a02eea
Add possibility to declare optional parameters and switch flags ()
* Add possibility to declare optional parameters and switch flags

With this commit applied it is now possible to specify optional parameters and flags
as switches. This PR **only** makes guarantees about **parsing** optional flags and
switches correctly. This PR **does not guarantee flawless functionality** of
optional parameters / switches within scripts.
functionality within scripts. Example:

test.nu
```shell
def my_command [
    opt_param?
    opt_param2?: int
    --switch
] {echo hi nushell}
```

```shell
> source test.nu
> my_command -h
───┬─────────
 0 │ hi
 1 │ nushell
───┴─────────
Usage:
  > my_command <mandatory_param> (opt_param) (opt_param2) {flags}

Parameters:
  <mandatory_param>
  (opt_param)
  (opt_param2)

Flags:
  -h, --help: Display this help message
  --switch
  --opt_flag <any>
```

* Update def docs
2021-01-28 06:31:29 +13:00
Jonathan Turner
388973e9ab
Bump to 0.26.0 () 2021-01-26 23:07:08 +13:00
Rust大闸蟹
088e662285
Replace git current_branch to shadow-rs branch ()
* update to shadow-rs 0.4. use easy

* update shadow-rs to 0.5

* fix version not used

* update

* update Cargo.lock

* update Cargo.lock

* fix wasm build error when use dependence git2
fix error link:https://dev.azure.com/nushell/nushell/_build/results?buildId=4858&view=logs&j=1a745d4c-b027-5f34-06d8-d6f256bfe9f9&t=a0a335cb-fa1f-5bbf-be01-1a90d6899e54

* remove code not used; fix warning by RUSTFLAGS="-D warnings" build error

* upgrade shadow-rs 0.5.2

* upgrade shadow-rs 0.5.7

make nushell reduce dependence crates smaller and  build fast.

* upgrade shadow-rs 0.5.8

fix when use api 'strip_prefix()' method in less than rust1.45.0 build failed

* use shadow-rs branch replace with current_branch method;
remove and reduce git dependencies.

* upgrade shadow-rs 0.5.12-pre,test build error with wasm

* upgrade Cargo.lock

* upgarde shadow-rs depencdence

* fix build error in wasm

* add clippy warning
2021-01-16 07:06:29 +13:00
Leonhard Kipp
f9b0b81eb2
Add def documentation () 2021-01-15 20:21:18 +13:00
Leonhard Kipp
63a62e19f9
Update alias docs () 2021-01-13 14:46:15 +13:00
Louis Pilfold
dfb1e22559
Update alias docs to new syntax ()
This confused me today after upgrading Nu. I believe this is now correct.
2021-01-13 08:30:27 +13:00
Jonathan Turner
7d07881d96
Bump to 0.25.2 () 2021-01-12 07:50:53 +13:00
Jonathan Turner
5e72b2a797
Bump to 0.25.1 for the hotfix release () 2021-01-06 15:16:08 +13:00
Jonathan Turner
d297199d7c
Bump to 0.25.0 () 2021-01-05 18:10:24 +13:00
Joseph T. Lyons
a5f7600f6f
Fix typos () 2021-01-02 17:24:32 +13:00
Leonhard Kipp
48f535f02e
Display aliases and custom commands in which; fix ()
* Display aliases and custom commands in which; Fix 

Example output of nu after the commit is applied:

```shell
/home/leo/repos/nushell(feature/which_inspect_alias)> def docker-ps [] { docker ps --format '{{json .}}' | from json -o }
/home/leo/repos/nushell(feature/which_inspect_alias)> which docker-ps
───┬───────────┬────────────────────────┬─────────
 # │    arg    │          path          │ builtin
───┼───────────┼────────────────────────┼─────────
 0 │ docker-ps │ nushell custom command │ No
───┴───────────┴────────────────────────┴─────────
/home/leo/repos/nushell(feature/which_inspect_alias)> alias d = gid pd
/home/leo/repos/nushell(feature/which_inspect_alias)> which d
───┬─────┬───────────────┬─────────
 # │ arg │     path      │ builtin
───┼─────┼───────────────┼─────────
 0 │ d   │ nushell alias │ No
───┴─────┴───────────────┴─────────
```

* Update documentation
2021-01-02 06:40:44 +13:00
Jonathan Turner
ac578b8491
Multiline scripts part 2 ()
* Begin allowing comments and multiline scripts.

* clippy

* Finish moving to groups. Test pass

* Keep going

* WIP

* WIP

* BROKEN WIP

* WIP

* WIP

* Fix more tests

* WIP: alias starts working

* Broken WIP

* Broken WIP

* Variables begin to work

* captures start working

* A little better but needs fixed scope

* Shorthand env setting

* Update main merge

* Broken WIP

* WIP

* custom command parsing

* Custom commands start working

* Fix coloring and parsing of block

* Almost there

* Add some tests

* Add more param types

* Bump version

* Fix benchmark

* Fix stuff
2020-12-18 20:53:49 +13:00
Jonathan Turner
5183fd25bb
Bump version () 2020-12-16 09:13:18 +13:00