You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FIX: add prettier std commands format in 0.79 changelog (#893)
* fix the comma-separated list of `std` commands
This commit also triggered the automatic formatting of `npm`.
* add backticks to all `std` commands for prettier format
Copy file name to clipboardExpand all lines: blog/2023-04-25-nushell_0_79.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,8 @@ and **reachable via the `use` command** without any additional setup.
39
39
> the _prelude_.
40
40
>
41
41
> As said above, the other commands are available with the `use` command.
42
-
The goal of this library is, as its name suggests, to provide a _standard_ experience and a _standardized_ set of commands and tools to any Nushell user.
43
-
In `std`, one can find things like
42
+
> The goal of this library is, as its name suggests, to provide a _standard_ experience and a _standardized_ set of commands and tools to any Nushell user.
43
+
> In `std`, one can find things like
44
44
45
45
- a test framework to write robust Nushell scripts, modules and libraries
46
46
- implementation of builtin commands once written in `rust`
@@ -56,12 +56,12 @@ In `std`, one can find things like
56
56
With this release, the library comes with the following custom commands:
|[`std assert`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/testing.nu)| a set of commands to write tests | assert, assert, equal, assert, error, assert, greater, assert, greater, or, equal, assert, length, assert, less, assert, less, or, equal, assert, not, equal, assert, skip, assert, str, contains |
60
-
|[`std dirs`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/dirs.nu)| a re-implementation of the `shells` commands | dirs, add, dirs, drop, dirs, next, dirs, prev, dirs, show |
61
-
|[`std help`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/help.nu)| a Nushell implementation of the built-in commands | help, help, aliases, help, commands, help, externs, help, modules, help, operators |
62
-
|[`std iter`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/iter.nu)| an extension of built-in commands to iterate over data | iter, filter-map, iter, find, iter, intersperse, iter, scan |
63
-
|[`std log`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/log.nu)| never miss something in your scripts | log, critical, log, debug, log, error, log, info, log, warning |
64
-
|[`xml` module](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/xml.nu)| tools to interact with Xml data | xaccess, xinsert, xtype, xupdate |
59
+
|[`std assert`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/testing.nu)| a set of commands to write tests |`assert`, `assert equal`, `assert error`, `assert greater`, `assert greater or equal`, `assert length`, `assert less`, `assert less or equal`, `assert not equal`, `assert skip`, `assert str contains`|
60
+
|[`std dirs`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/dirs.nu)| a re-implementation of the `shells` commands |`dirs add`, `dirs drop`, `dirs next`, `dirs prev`, `dirs show`|
61
+
|[`std help`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/help.nu)| a Nushell implementation of the built-in commands |`help`, `help aliases`, `help commands`, `help externs`, `help modules`, `help operators`|
62
+
|[`std iter`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/iter.nu)| an extension of built-in commands to iterate over data |`iter filter-map`, `iter find`, `iter intersperse`, `iter scan`|
63
+
|[`std log`](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/log.nu)| never miss something in your scripts |`log critical`, `log debug`, `log error`, `log info`, `log warning`|
64
+
|[`xml` module](https://github.com/nushell/nushell/blob/main/crates/nu-std/lib/xml.nu)| tools to interact with Xml data |`xaccess`, `xinsert`, `xtype`, `xupdate`|
65
65
66
66
- some other commands live under the `std` namespace, without any module: `clip`, `path add` and `run-tests`
If, for some reason, you want to load Nushell without the standard library, start `nu` with the `--no-std-lib`. This can be the case if you find the startup times much longer than before. We're aiming to improve the loading speed in the future.
98
+
If, for some reason, you want to load Nushell without the standard library, start `nu` with the `--no-std-lib`. This can be the case if you find the startup times much longer than before. We're aiming to improve the loading speed in the future.
99
99
100
100
## enhanced IDE support in our VS code extension ([JT](https://github.com/nushell/nushell/pull/8745), [fdncred](https://github.com/nushell/vscode-nushell-lang/pull/89))
101
101
@@ -118,14 +118,15 @@ We listened to your feedback around the syntax changes introduced with 0.78 and
118
118
While there are still some missing pieces, we removed the old alias implementation. This means that `old-alias` is no longer available. We decided to remove it to clean up the code. It makes further fixes to aliases easier as you do not need to remember which alias implementation a piece of code belongs to.
119
119
120
120
There are two notable missing features from the old aliases:
121
-
* Missing completions with external completers.
122
-
* Most parser keywords (such as `source`) cannot be aliased but adding support for aliasing them should be possible in most cases.
123
-
* Not possible to alias with environment shorthands (e.g., `alias foo = FOO=bar spam`)
124
-
* Some presentation issues, such as the output of `which` and the alias `usage` pointing at the aliased call instead of the alias itself.
121
+
122
+
- Missing completions with external completers.
123
+
- Most parser keywords (such as `source`) cannot be aliased but adding support for aliasing them should be possible in most cases.
124
+
- Not possible to alias with environment shorthands (e.g., `alias foo = FOO=bar spam`)
125
+
- Some presentation issues, such as the output of `which` and the alias `usage` pointing at the aliased call instead of the alias itself.
125
126
126
127
## Changes to default files locations ([ito](https://github.com/nushell/nushell/pull/8792)-[hiroki](https://github.com/nushell/nushell/issues/8887))
127
128
128
-
`$nu.config-path` and `$nu.env-path` are now set based on `--config` and `--env-config` flags passed to Nushell and also use the path after resolving symlinks. This means that they no longer guarantee pointing at the default Nushell's config directory. To be able to refere to the default config directory, `$nu.default-config-dir` was added and used in default `env.nu` to always point `NU_LIB_DIRS` to the `scripts` directory under the default config directory.
129
+
`$nu.config-path` and `$nu.env-path` are now set based on `--config` and `--env-config` flags passed to Nushell and also use the path after resolving symlinks. This means that they no longer guarantee pointing at the default Nushell's config directory. To be able to refere to the default config directory, `$nu.default-config-dir` was added and used in default `env.nu` to always point `NU_LIB_DIRS` to the `scripts` directory under the default config directory.
129
130
130
131
Related to that, [`$env.CURRENT_FILE`](https://github.com/nushell/nushell/pull/8861) was added to be able to show the currently evaluated file.
131
132
@@ -139,6 +140,7 @@ Related to that, [`$env.CURRENT_FILE`](https://github.com/nushell/nushell/pull/8
139
140
-[#8887](https://github.com/nushell/nushell/pull/8887)`NU_LIB_DIRS` definition in `env.nu` changed
140
141
141
142
# Full changelog
143
+
142
144
## Nushell
143
145
144
146
- sholderbach created [Bump to `0.79.1` dev version](https://github.com/nushell/nushell/pull/8998), and [Pin `reedline` to `0.19.0` release](https://github.com/nushell/nushell/pull/8996), and [Bump version for `0.79.0` release](https://github.com/nushell/nushell/pull/8980), and [Run coverage immediately](https://github.com/nushell/nushell/pull/8876), and [Reenable CI coverage](https://github.com/nushell/nushell/pull/8867), and [Fix span of multibyte short flags](https://github.com/nushell/nushell/pull/8866), and [Move CLI related commands to `nu-cli`](https://github.com/nushell/nushell/pull/8832), and [Follow up #8758 with a style fix](https://github.com/nushell/nushell/pull/8822)
0 commit comments