Skip to content

Commit 1f762f4

Browse files
authored
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
1 parent d1cb6d4 commit 1f762f4

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

blog/2023-04-25-nushell_0_79.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ and **reachable via the `use` command** without any additional setup.
3939
> the _prelude_.
4040
>
4141
> 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
4444
4545
- a test framework to write robust Nushell scripts, modules and libraries
4646
- implementation of builtin commands once written in `rust`
@@ -56,12 +56,12 @@ In `std`, one can find things like
5656
With this release, the library comes with the following custom commands:
5757
| module | description | commands |
5858
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
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 |
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` |
6565

6666
- some other commands live under the `std` namespace, without any module: `clip`, `path add` and `run-tests`
6767

@@ -95,7 +95,7 @@ use std 'dirs show'
9595

9696
[stdlib PRs]: https://github.com/nushell/nushell/pulls?q=is%3Aclosed+is%3Apr+label%3Astd-library
9797

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.
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.
9999

100100
## 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))
101101

@@ -118,14 +118,15 @@ We listened to your feedback around the syntax changes introduced with 0.78 and
118118
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.
119119

120120
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.
125126

126127
## Changes to default files locations ([ito](https://github.com/nushell/nushell/pull/8792)-[hiroki](https://github.com/nushell/nushell/issues/8887))
127128

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.
129130

130131
Related to that, [`$env.CURRENT_FILE`](https://github.com/nushell/nushell/pull/8861) was added to be able to show the currently evaluated file.
131132

@@ -139,6 +140,7 @@ Related to that, [`$env.CURRENT_FILE`](https://github.com/nushell/nushell/pull/8
139140
- [#8887](https://github.com/nushell/nushell/pull/8887) `NU_LIB_DIRS` definition in `env.nu` changed
140141

141142
# Full changelog
143+
142144
## Nushell
143145

144146
- 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

Comments
 (0)